How do I specify a parameter longer than 100 characters in BPXBATCH? |
BPXBATCH JCL only allows up to 100 bytes for the parameter string due to JCL limitations. You can pass long commands, up to 100 bytes, to BPXBATCH via the PARM parameter on the JCL EXEC statement. Multi line parameters require putting a X in Column 72 on the first line and beginning the next line in Column 16. //SFTPBMC EXEC PGM=BPXBATCH,REGION=8M, // PARM=('sh sftp -P 22 -vvv very.long.email.address@company.com@mft.bmX // c.com') Parameters longer than 100 bytes require using the STDPARMS DD. BPXBATCH STDPARM supports parameters up to 65,536 bytes. The parameter file can be a z/OS-Unix file or a MVS dataset. Example: Parameter data resides in the z/OS UNIX file //STDPARM DD PATH= '/home/tsoid/sftpCmds',PATHOPTS=ORDONLY Example: Parameter data resides in a PDS member //STDPARM DD DSN=TSOID.SFTPPARM.CNTL(SFTPCMDS),DISP=SHR Note that if the STDPARM ddname is defined, BPXBATCH uses the data found in that file instead of what is found in the parameter string or in the STDIN ddname. |