Gil,
Yes, export command is allowed in STDENV. Also, we use a "FOR loop" to load
application jars into the CLASSPATH
for i in "${APP_HOME}"/*.jar; do
CLASSPATH="$CLASSPATH":"$i"
done
Jerry
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Paul Gilmartin
Sent: Thursday, January 10, 2019 6:07 PM
To: [email protected]
Subject: Re: Do I need to copy a mainframe flat file to OMVS, before I access
the data from a JAVA program?
On Thu, 10 Jan 2019 17:49:44 -0500, Cameron Conacher wrote:
>Thank you Jerry.
>Do I simply add a normal DD statement identifying my file?
>
>//MYFILE DD DSN=HLQ.MYFILE,DISP=OLD
>
DD may not work because java may run in a separate address space unless you
have _BPX_SHAREAS=MUST. I'd concur with Matt's suggestion:
"//‘hlq.my.mvs.filename'"
It's probably simpler if you eschew JCL and stay with UNIX commands.
A possibility:
cp "//‘hlq.my.mvs.filename'" /dev/fd/1 | java ...
and reference the file as stdin or /dev/fd/0
(Is "export" allowed in STDENV?)
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to
[email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN