Skip to content

Instantly share code, notes, and snippets.

@okurka12
Created September 4, 2025 10:15
Show Gist options
  • Select an option

  • Save okurka12/effb739b8f6ff375a4c4a1ba98e6b69f to your computer and use it in GitHub Desktop.

Select an option

Save okurka12/effb739b8f6ff375a4c4a1ba98e6b69f to your computer and use it in GitHub Desktop.
JCL to run rexx script as a job (output to spool)
//*
//* 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