misi01 Advanced
Joined: 02 Dec 2002 Posts: 629 Topics: 176 Location: Stockholm, Sweden
|
Posted: Mon Sep 11, 2017 4:04 am Post subject: Using a parameter in a proclib |
|
|
I have a proclib that looks something like this
Code: |
//DEFAULT PROC MBR=&MBR,
// PSB=&PSB
//*
//BMPPROJ EXEC PGM=DFSRRC00,
// REGION=0M,
// TIME=1,
// PARM=(BMP,&MBR,&PSB,,,C00000,,1,,1,10,,,IM1B,,,,,,4)
//*
// INCLUDE MEMBER=BT4I2
// INCLUDE MEMBER=STEPDB
//*
|
What I would like to do would be to change it something like this instead:-
Code: |
//DEFAULT PROC MBR=&MBR,
// PSB=&PSB,
// DEBUG=
//*
//BMPPROJ EXEC PGM=DFSRRC00,
// REGION=0M,
// TIME=1,
// PARM=(BMP,&MBR,&PSB,,,C00000,,1,,1,10,,,IM1B,,,,,,4)
//*
// INCLUDE MEMBER=BT4I2
// IF DEBUG <> '' THEN
// INCLUDE MEMBER=&DEBUG
// ENDIF
//*
|
Basically, the default would be to NOT include the STEPDB include statement UNLESS the user passes it in as sort of parm.
My impression is that the IF/ENDIF can only be used to test returned codes from specific jobs.
I know I could create the JCL/PROCLIB using skeletons (done that before), but I'm just wondering if there is some simply variation I'm not aware of.
(For example, maybe I could have the default as being DEBUG=DUMMY and the create a DUMMY include with nothing in it???? _________________ Michael |
|