Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

IEBGENER - Pass parameters

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: IEBGENER - Pass parameters
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

Moderator Team Head


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

PostPosted: Wed Oct 13, 2010 3:23 pm    Post subject: Reply to: IEBGENER
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    Post subject: Thanks
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts Is it possible to pass variables of s... Csongor CLIST & REXX 2 Fri Jun 10, 2016 7:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us