I am trying to pass a symbolic argument from my JCL to my REXX program.
Is at all possible? if so, what would be the correct way to code the JCL?
Thanks in advance...
Here's the JCL as it is currently coded:
//JOB CARD (0000,0000,,0000),'0000000000 000000',
// CLASS=I,MSGCLASS=R
//*
/*JOBPARM SYSAFF=SYSA
//*
// SET PFX=IWDV.D2UC.C3.WPIWLHS2.SQLDELET
//********************************************************
//* RUN REXX XXXXXXXX OUT OF IWDV.FS.CP04.REXX
//* WITH ARGMENTS: ARG1 (PFX)
//********************************************************
//STEP1 EXEC PGM=IKJEFT01,DYNAMNBR=200,
// PARM='%DASHUNDR-EXEC &PFX'
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD DUMMY
//SYSEXEC DD DSN=IWDV.FS.CP04.REXX,DISP=SHR
/*
Here's the result for submitting the above JCL:
INVALID COMMAND NAME SYNTAX
READY
END
Passing symbolic parm values from JCL to REXX
Moderators: Veera, Moderator Group
Found the answer to my own question:
/*JOBPARM SYSAFF=SYSA
//*
// SET PFX=IWDV.D2UC.C3.WPIWLHS2.SQLDELET
//********************************************************
//* RUN REXX XXXXXXXX OUT OF IWDV.FS.CP04.REXX
//* WITH ARGMENTS: ARG1 (PFX)
//********************************************************
//STEP1 EXEC PGM=IKJEFT01,DYNAMNBR=200,
// PARM='DASHUNDR &PFX'
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD DUMMY
//SYSEXEC DD DSN=IWDV.FS.CP04.REXX,DISP=SHR
/*
/*JOBPARM SYSAFF=SYSA
//*
// SET PFX=IWDV.D2UC.C3.WPIWLHS2.SQLDELET
//********************************************************
//* RUN REXX XXXXXXXX OUT OF IWDV.FS.CP04.REXX
//* WITH ARGMENTS: ARG1 (PFX)
//********************************************************
//STEP1 EXEC PGM=IKJEFT01,DYNAMNBR=200,
// PARM='DASHUNDR &PFX'
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD DUMMY
//SYSEXEC DD DSN=IWDV.FS.CP04.REXX,DISP=SHR
/*
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page