Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How will you refer the very first version of a GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How will you refer the very first version of a GDG
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: 238
Location: USA

PostPosted: Wed Nov 19, 2003 11:20 am    Post subject:
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    Post subject: Thanks for this
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

Moderator Team Head


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

PostPosted: Tue Nov 29, 2005 7:53 pm    Post subject: Re: How will you refer the very first version of a GDG
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: 1452
Location: Chicago, IL

PostPosted: Tue Nov 29, 2005 8:33 pm    Post subject: Re: How will you refer the very first version of a GDG
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

Moderator Team Head


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

PostPosted: Tue Nov 29, 2005 9:27 pm    Post subject: Re: How will you refer the very first version of a GDG
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    Post subject: Re: How will you refer the very first version of a GDG
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Is there a time Version of DATEDIFF ? Bill Woodger DFSORT/ICETOOL 1 Wed Aug 17, 2016 7:06 pm
No new posts Syncsort version supporting FINDREP c... juares castro SYNCSORT 9 Tue Aug 09, 2016 6:54 pm
No new posts Faccing issues while creating a GDG V... sravindra_s JCL & VSAM 5 Thu Jun 23, 2016 11:26 am
No new posts Fujitsu Cobol 85 to IBM Cobol (Any ve... umakalikiri COBOL Programming 4 Fri Apr 15, 2016 7:40 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us