JCL

To run a REXX procedure you use the same JCL that is used to run any REXX procedure. If you are emulating MVS, run either IKJEFT01 or IRXJCL. If you are emulating TSO, run IKJEFT01.

For example:

//REXTEST JOB 'TEST DSNREXX SUPPORT',CLASS=A,MSGCLASS=A 
//*
//* Test the REXX engine using IKJEFT01
//*
//STEP10 EXEC PGM=IKJEFT01
//SYSEXEC  DD DSN=USER.TEST.EXEC,DISP=SHR
//SYSTSIN  DD *
rextest1
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSOUT   DD SYSOUT=*
//*
//* Test the REXX engine using IRXJCL
//*
//STEP30   EXEC PGM=IRXJCL,PARM='rextest1'
//SYSEXEC   DD DSN=USER.TEST.EXEC,DISP=SHR
//SYSTSPRT  DD SYSOUT=*
//SYSTSIN   DD DUMMY

Where file rextest1.rex contains the REXX procedure.

For a complete example of DSNREXX support, see Tutorial: DSNREXX under mainframe tutorials.