IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

IEBGENER - Pass parameters


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mazahar

New User


Joined: 11 Dec 2007
Posts: 82
Location: hyderabad

PostPosted: Wed Oct 13, 2010 3:19 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Oct 13, 2010 3:23 pm
Reply with quote

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
View user's profile Send private message
Mazahar

New User


Joined: 11 Dec 2007
Posts: 82
Location: hyderabad

PostPosted: Wed Oct 13, 2010 3:25 pm
Reply with quote

Kevin, Thanks for the quick reply

Can it be possible with JCL ? Do we need a program for sure?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Oct 13, 2010 3:25 pm
Reply with quote

as a general rule, inline datasets are not affected by symbolic substitution.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
No new posts pass data as symbolic parameter from ... CLIST & REXX 2
Search our Forums:

Back to Top