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

How will you refer the very first version of a GDG


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
giscard

New User


Joined: 22 Oct 2003
Posts: 4

PostPosted: Tue Nov 18, 2003 5:51 pm
Reply with quote

How will you refer the very first version of a GDG in a JCL(Provided you dont know the number of Versions created)
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Wed Nov 19, 2003 11:20 am
Reply with quote

Hello giscard,

Eg.
PAYROLL Name of the GDG
DSNAME=PAYROLL(0) This week?s generation data set
DSNAME=PAYROLL(-1) Last week?s generation data set
DSNAME=PAYROLL(-2) Generation data set of two weeks ago

To retrieve all generations of a GDG as a single data set, specify the GDG name without a generation number in the DSNAME parameter; this is called a GDG ALL request.

DSNAME=PAYROLL For all generations

To use a GDG ALL request, the DCB attributes and data set organization of all generations must be identical.

For a GDG on tape, when you use a GDG ALL request and specify parallel mounting in the UNIT parameter, the system mounts all volumes of only the first generation. This way you can access the first generation.


For the GDGs on DASD, i am not sure if you can really access ONLY the first version without knowing the GDG LIMIT. Will get back to you on this.

Hope this helps,

Regards

Mayuresh Tendulkar
Back to top
View user's profile Send private message
giscard

New User


Joined: 22 Oct 2003
Posts: 4

PostPosted: Tue Nov 29, 2005 7:37 pm
Reply with quote

Hi Mayuresh,

Thanks for your response..but to be honest I haven't got an answer for the question.

Thanks,
Anto.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Nov 29, 2005 7:53 pm
Reply with quote

giscard, are you referring to Versions (which YOU control, so you should always know exactly) or Generations (which the system controls)? There is no such built-in facility in JCL for Generations.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue Nov 29, 2005 8:33 pm
Reply with quote

Hi Superk,

Cant we get total number of generations in a GDG Base by IDCAMS LISTCAT. And then refer the first generation by (-(n-1)) in JCL.

I m not very sure, Please correct, If I wrong.

Regards,

Priyesh.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Nov 29, 2005 9:27 pm
Reply with quote

Absolutely. There have been many posts in this forum that show potential processes.
Back to top
View user's profile Send private message
rohit jaiswal
Warnings : 2

New User


Joined: 09 Mar 2006
Posts: 36
Location: hyderabad,A.P

PostPosted: Fri Mar 10, 2006 7:04 pm
Reply with quote

can anyone give me a jcl and explain me in detail about it

thanks

regards
rohit
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Copying GDG version(all/few) from pro... CLIST & REXX 13
No new posts XMITIP Latest Version JCL & VSAM 2
No new posts How to determine TLS/SSL version in m... TSO/ISPF 2
Search our Forums:

Back to Top