View previous topic :: View next topic
|
Author |
Message |
sanghai_swaps
New User
Joined: 07 Sep 2006 Posts: 2
|
|
|
|
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 |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
|