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

Reply via email to