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

How would GDG generation be reference


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

New User


Joined: 21 Feb 2007
Posts: 72
Location: US

PostPosted: Fri Aug 06, 2010 5:00 pm
Reply with quote

I have a question on GDG's.

Suppose i have 4 steps in my JCL .

Step1 --> Creates a generation of a GDG
Step2 --> Creates another generation of the same GDG
Step3 --> references generation created in step1
Step4 --> references generation created in step2

How would these generation be referenced?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Aug 06, 2010 5:05 pm
Reply with quote

Step 1 (+1)
Step 2 (+2)
Step 3 (+1)
Step 4 (+2)

The rule is each new generation bumps the number by one; all steps of the same job use the same reference because the new generations are not cataloged until the end of the job.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Aug 06, 2010 5:11 pm
Reply with quote

Step1 --> Creates a generation of a GDG --> this would be +1. Any other references to this dataset within the same job will continue to be +1.

Step2 --> Creates another generation of the same GDG --> this would be +2. Any other references to this dataset within the same job will continue to be +2.
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 DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Report generation JCL & VSAM 18
No new posts Reference for COND parameter. JCL & VSAM 1
No new posts How can I get Generation Nbr of GDG f... IBM Tools 1
Search our Forums:

Back to Top