Created
September 4, 2025 10:15
-
-
Save okurka12/effb739b8f6ff375a4c4a1ba98e6b69f to your computer and use it in GitHub Desktop.
JCL to run rexx script as a job (output to spool)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //* | |
| //* run a rexx script as a job (output to spool) | |
| //* | |
| //* | |
| //RXTEST JOB 'REXX SCRIPT',CLASS=A,MSGCLASS=X | |
| //* ^ specify job name here | |
| //* | |
| //STEP1 EXEC PGM=IKJEFT01,DYNAMNBR=20 | |
| //SYSTSPRT DD SYSOUT=* | |
| //* | |
| //SYSTSIN DD * | |
| %JGJOBS | |
| /* | |
| //* ^ specify rexx script name here | |
| //* | |
| //ISFOUT DD SYSOUT=* | |
| //ISFIN DD DUMMY | |
| //* | |
| //SYSEXEC DD DISP=SHR,DSN=VIT.REXX | |
| //* ^ specify rexx library here | |
| //* | |
| //* jgjobs (sdsf jg rgen) | |
| //* ^ add some comments here about what you're running | |
| //* for later reference in the job's JES2:JESJCL: | |
| //* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment