//I5701A3Z JOB ('RP','00','MM'),'INST RPS PP TC01',
// MSGCLASS=X,
// MSGLEVEL=(1,1),
// CLASS=2,
//**! TYPRUN=SCAN,
// NOTIFY=&SYSUID
//*
// SET TEST=1 //1=SIT, 0=PROD
// MSGCLASS=X,
// MSGLEVEL=(1,1),
// CLASS=2,
//**! TYPRUN=SCAN,
// NOTIFY=&SYSUID
//*
// SET TEST=1 //1=SIT, 0=PROD
I then use this symbolic down below in the JCL, following the Proc member EXEC statement to switch between the //STEPLIB override concatenation.
Sadly... when I EJCK the JCL, I get the message (CAY6339E STATEMENT MISPLACED WITHIN AN IF-THEN-ELSE CLAUSE) on each of the DD statements for the procstep override statement.... My goal is to not have to //*comment each line and then uncomment each line depending on which platform of the COBOL module I am testing.
//IFPROD IF (&TEST = 1) THEN
//STPR0040.STEPLIB DD DSN=PROD.OMP.BATCH.LOADLIB,DISP=SHR
// DD DSN=PROD.OM.BATCH.LOADLIB,DISP=SHR
// DD DSN=DB2.ALIAS.PROD.DSNLOAD,DISP=SHR
// INCLUDE MEMBER=RPSLIBS
//IFPROD ELSE
//*
//**** SIT STEPLIB
//*
//STPR0040.STEPLIB DD DSN=ISEN.S.SIT.BATCH.LOADLIB,DISP=SHR
// DD DSN=ISEN.P.PROD.BATCH.LOADLIB,DISP=SHR
// DD DSN=PROD.OMP.BATCH.LOADLIB,DISP=SHR
// DD DSN=ISEN.S.SIT.OMP.BATCH.LOADLIB,DISP=SHR
// DD DSN=ISEN.U.UAT.OMP.BATCH.LOADLIB,DISP=SHR
// DD DSN=PROD.OMP.CICS.LOADLIB,DISP=SHR
// DD DSN=TDB2D2DS.DB2.SDSNEXIT,DISP=SHR
// DD DSN=TDB2D2DS.DB2.SDSNLOAD,DISP=SHR
// INCLUDE MEMBER=RPSLIBS
//ENDPROD ENDIF
//STPR0040.STEPLIB DD DSN=PROD.OMP.BATCH.LOADLIB,DISP=SHR
// DD DSN=PROD.OM.BATCH.LOADLIB,DISP=SHR
// DD DSN=DB2.ALIAS.PROD.DSNLOAD,DISP=SHR
// INCLUDE MEMBER=RPSLIBS
//IFPROD ELSE
//*
//**** SIT STEPLIB
//*
//STPR0040.STEPLIB DD DSN=ISEN.S.SIT.BATCH.LOADLIB,DISP=SHR
// DD DSN=ISEN.P.PROD.BATCH.LOADLIB,DISP=SHR
// DD DSN=PROD.OMP.BATCH.LOADLIB,DISP=SHR
// DD DSN=ISEN.S.SIT.OMP.BATCH.LOADLIB,DISP=SHR
// DD DSN=ISEN.U.UAT.OMP.BATCH.LOADLIB,DISP=SHR
// DD DSN=PROD.OMP.CICS.LOADLIB,DISP=SHR
// DD DSN=TDB2D2DS.DB2.SDSNEXIT,DISP=SHR
// DD DSN=TDB2D2DS.DB2.SDSNLOAD,DISP=SHR
// INCLUDE MEMBER=RPSLIBS
//ENDPROD ENDIF
Thanks everyone!
-Scott