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

Doubt in GDG


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

New User


Joined: 19 Feb 2005
Posts: 13

PostPosted: Sun Jul 17, 2005 8:50 pm
Reply with quote

HI,
I have a query in GDG. I have created one generation in one step and i am using the same generation in next step. For that we have to code Dataset(+1) why because all genearations are cataloged after completion of the job only, so what we have to code for DISP parameter. Is it new or old?

I hope that i will get the answer for the above query.

Thanks...
Suresh.
Back to top
View user's profile Send private message
die7nadal

Active User


Joined: 23 Mar 2005
Posts: 156

PostPosted: Sun Jul 17, 2005 10:07 pm
Reply with quote

Suresh,
The DISP should be OLD. The Datasets would be catalogued at a particular STEP, not at the end of the JOB. I cant tell u why IBM referenced a new GDS as (+1) through out the JOB, but my guess would be to increase the understanding ability of a programmer when he goes through the JCL. If a (+1) GDS was mentioned as (0) in the next STEP then u cud easily lose track of the GDS.
Back to top
View user's profile Send private message
shobam

New User


Joined: 18 Jul 2005
Posts: 34
Location: CN

PostPosted: Mon Jul 18, 2005 1:10 pm
Reply with quote

The relative generation numbers of all generations of a GDG gets updated in the catalog only after the end of the job. Thats why (+1) is being used for a newly created GDG till the end of the job.

Please correct me if I am wrong.
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 Doubt about pl/1 (job offer) General Talk & Fun Stuff 5
No new posts doubt when executing a file when logg... TSO/ISPF 2
No new posts Doubt in MFS IMS DB/DC 2
No new posts Doubt on GETMAIN, FREEMAIN behaviour CICS 3
No new posts Doubt in using command code O IMS DB/DC 4
Search our Forums:

Back to Top