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

How to refer the GDG member created in previous step


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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: 1448
Location: Chicago, IL

PostPosted: Thu Sep 07, 2006 7:07 pm
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: 2358
Location: Israel

PostPosted: Thu Sep 07, 2006 7:57 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
Search our Forums:

Back to Top