<Dataset name> followed by (0)?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

<Dataset name> followed by (0)?

Postby FAB64 » Wed Nov 01, 2017 1:25 am

I realize this is an extremely basic question, but I haven't been able to find anything by searching.

I am trying to learn JCL, including looking at some examples I have found. The following statement is describing an input file being used by the job (the input file is a sequential backup of a VSAM file):

//SORTIN DD DSN=PRDCC.TEST.SAVE2.BOOKNOTE.D.AFT(0),

Can someone please tell me what the zero in parentheses after the data set name signifies? Thank you.
FAB64
 
Posts: 3
Joined: Wed Nov 01, 2017 12:38 am
Has thanked: 2 times
Been thanked: 0 time

Re: <Dataset name> followed by (0)?

Postby Robert Sample » Wed Nov 01, 2017 2:03 am

The data set is a generation data group and the (0) represents the current (most recently created) generation. Look up GDG in the JCL Reference manual to learn more.

These users thanked the author Robert Sample for the post:
FAB64 (Wed Nov 01, 2017 2:05 am)
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post