Posted: Wed Dec 29, 2004 11:39 am Post subject: How to use SYMBOLICs to concatenate STEPLIB?
How can I use symbolics to pass concatenated steplib to a proc? I want to maintain one proc and use it in unit, system, and production environments by passing loadlib to procedure unique to each instance.
This is not working....
IEFC653I SUBSTITUTION JCL - (61724,IBCX),'DURBAN',CLASS=W,MSGCLASS
2 // SET SYMBOL1='C62CH97.TEST.LOADLIB1,DISP=SHR'
3 // SET DDDSN1=' DD DSN='
4 // SET SYMBOL2='C62CH97.TEST.LOADLIB2,DISP=SHR'
5 // SET DDDSN2=' DD DSN='
6 // SET SYMBOL3='C62CH97.TEST.LOADLIB3,DISP=SHR'
//*
//*
7 //COBOL EXEC PGM=TESTCOB
8 //STEPLIB DD DSN=&SYMBOL1.&DDDSN1.$SYMBOL2.&DDDSN2.&SYMBOL3
IEFC653I SUBSTITUTION JCL - DSN=C62CH97.TEST.LOADLIB1,DISP=SHR
ALLOC. FOR C62CH97T COBOL
SMS ALLOCATED TO DDNAME STEPLIB
REQUESTED MODULE TESTCOB NOT FOUND
If you really want to use symbolics, I would think that you'd need to have each of the DDDSN and SYMBOL symbolics appear on a seperate line with a "//" at the beginning.
________
drug test kit
Last edited by dtf on Tue Feb 01, 2011 1:38 pm; edited 1 time in total
Posted: Wed Dec 29, 2004 1:44 pm Post subject: Symbolics
Hi DavidJUrban,
This should work for you.
Code:
//*
//LIBSRCH JCLLIB ORDER=YOUR.INCLUDE.LIBRARY
// SET RUNENV=D D,Q,P FOR DEV,QUAL,PROD
// SET RUNSYS=SYS1 SYS1 OR SYS7
//*
//JOBLIB DD DSN=YOUR.NULL.LOADLIB,DISP=SHR
// INCLUDE MEMBER=&RUNENV.&RUNSYS.
You can create a member DSYS1 in include library having all the library concatenations.[/code] _________________ Regards,
Shivprakash
Default the symbolics with the production library as SYMBOL1=MY.PROD.LOADLIB, SYMBOL2=MY.PROD.LIBRARY, SYMBOL3=MY.PROD.LIBRARY and change as needed for testing.
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