REXX – SEND MULTIPLE ARGUMENTS THROUGH JCL

When you are running your REXX EXEC through BATCH, you can send multiple arguments through PARM. But if your arguments length exceeds 100 bytes, you cannot pass it through PARM. You can make use of below JCL to do the same where you pass your Arguments in the SYSTSIN DD name.

//STEP02 EXEC PGM=IKJEFT01
//SYSPROC DD DSN=YOUR.REXX.EXEC,DISP=SHR
//SYSTSPRT DD SYSOUT=A
//SYSTSIN DD *
READFILE –
YOUR.INPUT.FILE5 –
YOUR.INPUT.FILE6
/*

Where READFILE is your EXEC and you can use below ARG command to get the above data into variables.

/** REXX **/
CLRSCRN
ARG FILE1 FILE2
Where FILE1 will hold YOUR.INPUT.FILE5 and FILE2 will hold YOUR.INPUT.FILE6.

Important SQL CODES and ABEND CODES
SORT JOIN – TO JOIN TWO FILES BASED ON A KEY
KNOW YOUR MAINFRAME
REXX – INITIAL SETUP
EASYTRIEVE – A023 ABEND
EASYTRIEVE – SORT and FILE COMPARISION
EASYTRIEVE – Special-name Report Procedures
EASYTRIEVE – REPORT STAEMENT
EASYTRIEVE – Sample Program – Table And Search
EASYTRIEVE – Sample Program – Display Totals and Summary
EASYTRIEVE – Sample Program – Display Employee Data
CA-Easytrieve/Plus – Basics
REXX TOOL # 02 – FSAVE – Save member opened in VIEW mode
REXX TOOL # 01 – O – Open Any Mainframe Element from any ISPF Screen
REXX – INDEX, POS, SUBSTR, COMPARE
REXX – READ THE DSN PROVIDED AS DD IN JCL
REXX – SEND MULTIPLE ARGUMENTS THROUGH JCL
REXX – HOW TO COMPILE YOUR REXX EXEC
REXX – CHANGE UPPER TO LOWER CASE
REXX – GET LAST 4 DAYS FROM GIVEN DATE
REXX – PANEL Definition
REXX – READ, CREATE AND WRITE DATA TO A DATASET
REXX TOOL TO SUBSTITUTE SYMBOLICS IN A PROC
Advertisements