MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Pass Parameters from A PDS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
jayram99
Beginner


Joined: 16 Aug 2004
Posts: 54
Topics: 22
Location: falls church.va,usa

PostPosted: Sat Mar 28, 2026 5:21 pm    Post subject: Pass Parameters from A PDS Reply with quote

Need help on this . I have Dataset ENXX.MIS.PARMLIB(PASSPARM). The PDS has following Details.

Code:

// SET TABLE=ABC0010S
// SET INPUTDS=MIS.PCWDXXXX.ABC0010S.OFILE1(0)


JCL ENXX.MIS.JCL(PCWDAUTX) should read above dataset and pass TABLE Parameter to SAS Step AND INPUTDS Value to ICETOOL Stemp. Attaching JCL For your reference.

Code:


//PCWDAUTX JOB (8456000000,CW),
//            'UPDT CDC_PROCSS_CYCL',
//            MSGCLASS=T,
//            CLASS=2,
//            USER=BTCHJOB
//*___________________________________________________________________
//* Need Help to Read ENXX.MIS.PARMLIB(PASSPARM)
//*
//PROCORDR JCLLIB ORDER=(MIS.PROCLIB)
//PROD     SET SSID='DB2P'     | 'DB2D'    | 'DB2Q'    | 'DB2U'
//PROD     SET ENV=''          | 'ENXX.'   | 'SHAD.'   | ''
//PROD     SET DB2ENV='USER'   | 'ENXX.'   | 'SHAD.'   | 'USER'
//PROD     SET TABLE=&TABLE    | 'CDWDDB'  | 'CDWFV1'  | 'CDWP'
//PROD     SET INPUTDS=&INPUTDS
//* __________________________________________________________________
//*
//JS10     EXEC PGM=ICETOOL
//*
//*ILEIN   DD DSN=&ENV.MIS.PCWDXXXX.ABC0010S.OFILE1(0),
//*           DISP=SHR
//FILEIN   DD DSN=&INPUTDS, ------------------------> Need Help to pass INPUTDS from ENXX.MIS.PARMLIB(PASSPARM)
//*           DISP=SHR
//FILEOUT  DD DSN=&TMP1,
//            DISP=(NEW,PASS,DELETE),
//            UNIT=SYSDA,
//            SPACE=(TRK,(1,1),RLSE),
//            DCB=(RECFM=VB,BLKSIZE=0,DSORG=PS)
//TOOLMSG  DD SYSOUT=*
//DFSMSG   DD SYSOUT=*
//SHOWDEF  DD SYSOUT=*
//TOOLIN   DD DSN=&ENV.MIS.PARMLIB(CWDAUTMA),
//            DISP=(SHR,KEEP,KEEP)
//*
//*| JS40 EXECUTE SAS PROC / OVERRIDES BY ENVIRONMENT                 |*
//*|------------------------------------------------------------------|*
//*|    CREATE CDW TABLE OUTFILE1                                     |*
//*|__________________________________________________________________|*
//*|SYMBOLIC|REQ|              ALL ENVIRONMENTS           |  DEFAULT  |*
//*|--------|---|-----------------------------------------|-----------|*
//*|OPTIONS |YES| SAS DB2 OPTION                          | ''        |*
//*|USERID  |YES| UNIX USERID                             | ''        |*
//*|UNIXID  |YES| UNIX MACH ID                            | ''        |*
//*|WORK    |YES| WORK SPACE                              | ''        |*
//*|______________________________________________________|           |*
//*|        |   |    DEVELOPMENT    |     OPS TESTING     |           |*
//*|        |   |-------------------|---------------------|           |*
//*|ENV     |NO |  'ENXX.'          |  'SHAD.'            | ''        |*
//*|DB2ENV  |YES|  'DEVL'           |  'SHAD.'            | 'USER'    |*
//*|________|___|___________________|_____________________|___________|*
//*
//JS40   EXEC SAS,
//            OPTIONS='$DB2DBUG',
//            DB2ENV=&DB2ENV,
//            WORK='500,250',
//            ENV=&ENV,
//            PARM='SYSPARM="&SSID,&TABLE"'  --------------> TABLE Parameter should be Passed from ENXX.MIS.PARMLIB(PASSPARM)
//*
//SASAUTOS DD
//         DD
//         DD DSN=&ENV.MIS.MACLIB,
//            DISP=(SHR,KEEP,KEEP)
//SASLOG   DD SYSOUT=*
//SASLIST  DD SYSOUT=*
//SASLIB   DD DSN=UIS.USER.FORMATS,
//            DISP=(SHR,KEEP,KEEP)
//         DD DSN=UIS.USER.FMTLIB,
//            DISP=(SHR,KEEP,KEEP)
//*
//INFILE   DD DSN=&TMP1,
//            DISP=SHR
//*
//SYSIN    DD DSN=&ENV.MIS.SOURCE(CDWAUT),DISP=SHR




Please advise. Even if any other options or design approach also works for me.

Appreciate your help. Its been long time i am visiting this site. If you see any formatting or posting information is not good , Please correct me.

Thank you,
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12403
Topics: 75
Location: San Jose

PostPosted: Sun Mar 29, 2026 7:49 am    Post subject: Reply with quote

jayram99,


Look at the example here

CODE the PDS name as JCLLIB and just have an INCLUDE of the member before the PROC name

https://www.mvsforums.com/helpboards/viewtopic.php?p=64267#64267
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jayram99
Beginner


Joined: 16 Aug 2004
Posts: 54
Topics: 22
Location: falls church.va,usa

PostPosted: Mon Mar 30, 2026 2:05 pm    Post subject: Reply with quote

Thanks Kolusu for your help.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group