Also, the values are set from stdenv before processing the profile, so the may be overridden.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [[email protected]] on behalf of Paul Gilmartin [[email protected]] Sent: Thursday, February 24, 2022 10:29 AM To: [email protected] Subject: Re: BPXBATCH Environment Variable concatenation - STDENV On Thu, 24 Feb 2022 08:43:33 -0600, Mario Bezzi wrote: >Hello list, > >I can't find an elegant way to pass a variable containing a long string to a >USS shell command executed under BPXBATCH. > >Looking at what the JVMLDMxx module (JVM invocation) does I tried something >like the following: > >//RUNTEST EXEC PGM=BPXBATCH >//STDOUT DD SYSOUT=* >//STDERR DD SYSOUT=* >//STDENV DD * >IJO="-Xms16m -Xmx128m" >IJO="$IJO -verbose:class" >IJO="$IJO -Dfile.encoding=ISO8859-1" >//STDPARM DD * >SH echo $IJO > STDENV is not a shell script as you are assuming. Try: //STDPARM DD * SH set -x; IJO="-Xms16m -Xmx128m" ; IJO="$IJO -verbose:class" ; IJO="$IJO -Dfile.encoding=ISO8859-1" ; echo $IJO -- 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
