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
 

 

How to refer the GDG member created in previous step

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
sanghai_swaps

New User


Joined: 07 Sep 2006
Posts: 2

PostPosted: Thu Sep 07, 2006 6:38 pm    Post subject: How to refer the GDG member created in previous step
Reply with quote

In a job, a GDG generation is created as follows.
//STEP01 EXEC PGM=SORT
?.
//SORTOUT DD DSN=TEST.OUTFILE(+1),DISP=(NEW,CATLG,DELETE)
How will it be referred as input in the next step of the same job?

I'm told the answer is TEST.OUTFILE(+1)
is it correct and why?
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Thu Sep 07, 2006 7:07 pm    Post subject: Re: can u tell me what is the answer?
Reply with quote

Quote:
I'm told the answer is TEST.OUTFILE(+1)
is it correct and why?

Yes it is correct, until the job terminates created generation number would be referred as (+1).
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Sep 07, 2006 7:57 pm    Post subject:
Reply with quote

JES interprets GDG relative numbers only once: at the start of processing (actually, the INTERNAL READER tries to do that), hence you will use the same GDG reference across the whole job.
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 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


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