How do you run a rexx program with jcl?
JCL (Job Control Language) to run a REXX is a common practice.
You should have a sample JCL in your shop. Note this all runs on
Z/OS not windows and the REXX cannot be an interactive REXX.
//JOBNAME JOBCARD INFO
....
//STEPNAME EXEC PGM=IKJEFT01,PARM='REXXNAME'
//SYSTSPRT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=D,FLASH=F003
//SYSPROC DD DSN=YOUR.REXX.LIBRARY,DISP=SHR
//SYSTSIN DD DUMMY,DCB=BLKSIZE=80
Change the jobcard to match your shops standards for running
JCL
Put a stepname you like (replace STEPNAME)
Replace REXXNAME with the name of the REXX you wish to run
On the SYSPROC line put the library name you used to create the
REXX exec.
Submit the JCL (note you also need submit authority to run
JCLs)