I have written a REXX to submit JCL. I am having a problem when I submit from a stack. The variables that I am using have some Capitals and non-caps. When the JOB is submitted the variable always come out all caps. Using TRACE I can see that before they are Queued they are in the right case.
The following is the REXX.
/* REXX - PULL EAR */
TRACE R
ADDRESS TSO
ARG USERID
ADDRESS ISPEXEC "VGET (OUTDIR) SHARED"
ADDRESS ISPEXEC "VGET (INFILE) SHARED"
SAY 'HERE IS OUTDIR'
SAY OUTDIR
SAY 'HERE IS THE INFILE'
SAY INFILE
OUTFILE=INFILE
"NEWSTACK"
QUEUE '//@NDMCHL JOB (DD90N),''NDM EAR '',CLASS=E,'
QUEUE '// NOTIFY='USERID',TIME=2,MSGCLASS=A'
QUEUE '/*ROUTE PRINT FETCH '
QUEUE '//NDM1 EXEC PROC=NDMREQ,NDMREG=CDT1 '
QUEUE '//FCSAPI.DMPUBLIB DD DSN=TMH.HUB.JCL,DISP=SHR '
QUEUE '//NDMCMDS DD SYSOUT=* '
QUEUE '//SYSIN DD * '
QUEUE ' SIGNON CASE=YES '
QUEUE ' SUBMIT PROC=TCPPULLJ - '
QUEUE ' &INDSN='INFILE' - '
QUEUE ' &OUTDSN='OUTDIR''OUTFILE' - '
QUEUE ' &OUTDISP=RPL '
QUEUE ' SIGNOFF '
QUEUE '// '
QUEUE ''
"SUBMIT *"
"DELSTACK"
RETURN
Any suggestions would be appreciated.
The following is the REXX.
/* REXX - PULL EAR */
TRACE R
ADDRESS TSO
ARG USERID
ADDRESS ISPEXEC "VGET (OUTDIR) SHARED"
ADDRESS ISPEXEC "VGET (INFILE) SHARED"
SAY 'HERE IS OUTDIR'
SAY OUTDIR
SAY 'HERE IS THE INFILE'
SAY INFILE
OUTFILE=INFILE
"NEWSTACK"
QUEUE '//@NDMCHL JOB (DD90N),''NDM EAR '',CLASS=E,'
QUEUE '// NOTIFY='USERID',TIME=2,MSGCLASS=A'
QUEUE '/*ROUTE PRINT FETCH '
QUEUE '//NDM1 EXEC PROC=NDMREQ,NDMREG=CDT1 '
QUEUE '//FCSAPI.DMPUBLIB DD DSN=TMH.HUB.JCL,DISP=SHR '
QUEUE '//NDMCMDS DD SYSOUT=* '
QUEUE '//SYSIN DD * '
QUEUE ' SIGNON CASE=YES '
QUEUE ' SUBMIT PROC=TCPPULLJ - '
QUEUE ' &INDSN='INFILE' - '
QUEUE ' &OUTDSN='OUTDIR''OUTFILE' - '
QUEUE ' &OUTDISP=RPL '
QUEUE ' SIGNOFF '
QUEUE '// '
QUEUE ''
"SUBMIT *"
"DELSTACK"
RETURN
Any suggestions would be appreciated.