Page 1 of 1

<Dataset name> followed by (0)?

PostPosted: Wed Nov 01, 2017 1:25 am
by FAB64
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.

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

PostPosted: Wed Nov 01, 2017 2:03 am
by Robert Sample
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.