<Dataset name> followed by (0)?

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...
FAB64
Posts: 3
Joined: Wed Nov 01, 2017 12:38 am
Skillset: Long-time Burroughs/Unisys programmer, just learning IBM mainframe, JCL, TSO & ISPF.
Referer: Found you in an on-line search

<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.

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

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.


  • Similar Topics
    Replies
    Views
    Last post