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

versions in GDG


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

Active User


Joined: 17 Oct 2004
Posts: 191
Location: hyderabad

PostPosted: Tue Mar 14, 2006 8:25 pm
Reply with quote

Hi Friends


How to keep all the versions of the GDG

I created GDG member using JCl
EM9090.GDGLIB.TEST(+1)
it created Generation data set by name EM9090.GDGLIB.TEST.G0001V00

i want to create a new version like below
EM9090.GDGLIB.TEST.G0001V01
so in the jcl i gave EM9090.GDGLIB.TEST.G0001V01,disp=new

It Created generation dataset by name EM9090.GDGLIB.TEST.G0001V01
but deleted EM9090.GDGLIB.TEST.G0001V00

How to keep this EM9090.GDGLIB.TEST.G0001V00 version


Regards
Siva
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 Mar 14, 2006 8:34 pm
Reply with quote

You can't. You are only allowed one version per generation. Doing otherwise would defeat the whole concept of generation data groups.

Normally, a new version is created as a replacement for the old version, usually as the result of some fix to the data.

The only suggestion I have is to make a copy of the original version first, to either another GDG group, another generation within the same group, or to a plain sequential dataset, then do your update to the version.
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Tue Mar 14, 2006 8:41 pm
Reply with quote

hy superk,

is very right,
of course you can refer to a gdg dataset by
using its full name. but if you want to create one,
then work only relativ, i.e. dataset(+1)

if you want to keep any version,
define your gdg limit as big as possible
(if it makes sense),
but better take superk's solution for that,
make a copy.

martin9
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 Merge GDG versions JCL & VSAM 5
No new posts How to check if any of the GDG versio... JCL & VSAM 3
No new posts Related to GDG versions creations JCL & VSAM 5
No new posts GDG versions not being selected for b... SYNCSORT 2
No new posts Multiple GDG versions to a single fil... JCL & VSAM 8
Search our Forums:

Back to Top