View previous topic :: View next topic
|
Author |
Message |
Mazahar
New User
Joined: 11 Dec 2007 Posts: 82 Location: hyderabad
|
|
|
|
Can you please help me
Code: |
//GENER01 EXEC PGM=IEBGENER
//SYSUT1 DD *
FILE1=X.Y.Z
FILE2=M.N.O
FILE3=A.B.C
//SYSUT2 DD DSN=P.Q.R,DISP=(NEW,CATLG,DELETE) |
Is there any way i can pass FILE1,FILE2 and FILE3 i can pass as symbolic parameters?
I was trying the below code but its is not working, any suggestions please??
Code: |
// SET FILE10=X.Y.Z,
// FILE20=M.N.O,
// FILE30=A.B.C
//GENER01 EXEC PGM=IEBGENER
//SYSUT1 DD *
FILE1=&FILE10
FILE2=&FILE20
FILE3=&FILE30
//SYSUT2 DD DSN=P.Q.R,DISP=(NEW,CATLG,DELETE) |
|
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Yes, setup a program to pass those variables in via a PARM= statement, then have it write out the translated values as needed. |
|
Back to top |
|
|
Mazahar
New User
Joined: 11 Dec 2007 Posts: 82 Location: hyderabad
|
|
|
|
Kevin, Thanks for the quick reply
Can it be possible with JCL ? Do we need a program for sure? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
as a general rule, inline datasets are not affected by symbolic substitution. |
|
Back to top |
|
|
|