Passing symbolic parm values from JCL to REXX

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

Post Reply
mahdnasr
Member
Posts: 4
Joined: Sat Aug 23, 2014 4:39 pm

Passing symbolic parm values from JCL to REXX

Post by mahdnasr » Sat Aug 23, 2014 5:18 pm

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

mahdnasr
Member
Posts: 4
Joined: Sat Aug 23, 2014 4:39 pm

Post by mahdnasr » Mon Aug 25, 2014 5:13 pm

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
/*

Begingus
Member
Posts: 2
Joined: Wed Sep 16, 2015 10:20 am
Contact:

Post by Begingus » Wed Sep 16, 2015 10:23 am

It does not take much to understand. But I wanted to try it.

academyindia4

Topic deleted by Admin

Post by academyindia4 » Wed Jan 20, 2016 3:31 pm

<< Content deleted By Admin >>

Post Reply

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



Other References
Mainframe Tools and others