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
 

 

To create New Version of a GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
meenasomu

New User


Joined: 15 Sep 2005
Posts: 17

PostPosted: Thu Oct 20, 2005 8:57 pm    Post subject: To create New Version of a GDG
Reply with quote

Hi,

My requirement is to create a new Version of a GDG. I have idea on how to create a new generation. But i dont have any idea on how to create a new Version of GDG.

Can anyone help me in this regard.

Thanks in Advance.

Regards,
Meena.
Back to top
View user's profile Send private message

Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Thu Oct 20, 2005 10:04 pm    Post subject: Re: To create New Version of a GDG
Reply with quote

There are a few different things you can do. For these examples, I'll presume that you have existing generation dataset 'HLQ.MYGDG.G0001V00' and that you want to increment the version number by 1 to make the new generation dataset 'HLQ.MYGDG.G0001V01':

1. A copy:

Code:

//COPY     EXEC PGM=IEBGENER
//SYSUT1   DD   DSN=HLQ.MYGDG.G0001V00,DISP=SHR
//SYSUT2   DD   DSN=HLQ.MYGDG.G0001V01,DISP=(,CATLG,DELETE),
//         UNIT=DISK,SPACE=(whatever),DCB=MODEL.DSCB
//SYSPRINT DD   SYSOUT=*
//SYSIN    DD   DUMMY

or

//COPY     EXEC PGM=IDCAMS
//SYSUT1   DD   DSN=HLQ.MYGDG.G0001V00,DISP=SHR
//SYSUT2   DD   DSN=HLQ.MYGDG.G0001V01,DISP=(,CATLG,DELETE),
//         UNIT=DISK,SPACE=(whatever),DCB=MODEL.DSCB
//SYSPRINT DD   SYSOUT=*
//SYSIN    DD   *
  REPRO IFILE(SYSUT1) OFILE(SYSUT2)
/*
or

//COPY     EXEC PGM=SORT
//SORTIN   DD   DSN=HLQ.MYGDG.G0001V00,DISP=SHR
//SORTOUT  DD   DSN=HLQ.MYGDG.G0001V01,DISP=(,CATLG,DELETE),
//         UNIT=DISK,SPACE=(whatever),DCB=MODEL.DSCB
//SYSOUT   DD   SYSOUT=*
//SYSIN    DD   *
  OPTION COPY
/*


2. A rename:

Code:

//RENAME   EXEC PGM=IDCAMS
//SYSPRINT DD   SYSOUT=*
//SYSIN    DD   *
  ALTER 'HLQ.MYGDG.G0001V00' NEWNAME('HLQ.MYGDG.G0001V01')
/*

or

//RENAME   EXEC PGM=IKJEFT01
//SYSTSPRT DD   SYSOUT=*
//SYSTSIN  DD   *
  RENAME 'HLQ.MYGDG.G0001V00' 'HLQ.MYGDG.G0001V01'
/*
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Thu Oct 20, 2005 11:23 pm    Post subject: Re: To create New Version of a GDG
Reply with quote

You might want to read this document:

http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/dgt2d430/3.10.2?DT=20040624112123#HDRABGEN9

as a follow-up.
Back to top
View user's profile Send private message
meenasomu

New User


Joined: 15 Sep 2005
Posts: 17

PostPosted: Fri Oct 21, 2005 9:27 pm    Post subject: Re: To create New Version of a GDG
Reply with quote

Hi Kevin,

Thanks for the details. This was useful.

The link you gave says that version is mainly used to replace a generation if the data of that particular generation(other than the current generation) changes.

Is there anyway by which i can have both V00 and V01?

Thanks in Advance.

Regards,
Meena.
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Sat Oct 22, 2005 12:16 am    Post subject: Re: To create New Version of a GDG
Reply with quote

meenasomu wrote:
Is there anyway by which i can have both V00 and V01?

No, not for the same base.
Back to top
View user's profile Send private message
Vishwamurthy

New User


Joined: 11 Mar 2008
Posts: 57
Location: India

PostPosted: Wed Feb 18, 2009 7:41 pm    Post subject:
Reply with quote

In that case, if I generate new generations, I am not able to maintain the version number as V01 for the next generations.

I have renamed the Generation 1

INUSER2.GDG.G0001V00
to
INUSER2.GDG.G0001V01

and submitted a JCL

//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=INUSER2.GDG(+1),DISP=(NEW,CATLG),
// UNIT=SYSDA,SPACE=(TRK,(2,3),RLSE),
// DCB=(LRECL=80,BLKSIZE=800,RECFM=FB)
//

For this, it generated a new Generation:

INUSER2.GDG.G0002V00
but i was expecting
INUSER2.GDG.G0002V01
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Feb 18, 2009 7:50 pm    Post subject:
Reply with quote

WOW, responding to a thread that has been dormant for over threee years.

Why would you expect to get V01 ?
Back to top
View user's profile Send private message
Vishwamurthy

New User


Joined: 11 Mar 2008
Posts: 57
Location: India

PostPosted: Wed Feb 18, 2009 7:55 pm    Post subject:
Reply with quote

I was searching for a topic like this..
I want to create datasets/generations in version V01..
I found this most relevant.. i went through the IBM link in kevin's post to find not much info about this icon_smile.gif.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Feb 18, 2009 7:58 pm    Post subject:
Reply with quote

Any reason to deviate from the norm in creating V00 by creating V01
Back to top
View user's profile Send private message
Vishwamurthy

New User


Joined: 11 Mar 2008
Posts: 57
Location: India

PostPosted: Wed Feb 18, 2009 8:06 pm    Post subject: Re: To create New Version of a GDG
Reply with quote

Kevin wrote:
meenasomu wrote:
Is there anyway by which i can have both V00 and V01?

No, not for the same base.


I have deleted all generations of V00 except for one, which i renamed using one of the procedures in one of the previous posts. The rename was successful.. Now, i have generation of V01.. So the next generations to be created should be of the same version. But the new generations being created are of version V00, against what has been stated in the Quoted text. That is the only deviation I found icon_razz.gif with what is really happening on my mainframe. I cannot say if that would be a deviation from the norm of creating V00s..
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Feb 18, 2009 11:20 pm    Post subject:
Reply with quote

Hello,

Quote:
I cannot say if that would be a deviation from the norm of creating V00s..
Maybe you cannot say this, but it surely is a deviation.

Did a little survey of a few thousand gdg bases on multiple client's systems and none of them has anything other than V00.

Quote:
So the next generations to be created should be of the same version.
V01? What business requirement does this support?
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Feb 18, 2009 11:38 pm    Post subject:
Reply with quote

Rather than "not for the same BASE", Kevin meant to say "not for the same generation".

A GDG base may have many generations and a mix of versions but each generation can have only one version.

The +1 generation after G0001V01 will be G0002V00.
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 GDG version number PANDU1 JCL & VSAM 4 Sat Mar 04, 2017 8:28 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 15 Tue Nov 01, 2016 11:24 am
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Is there a time Version of DATEDIFF ? Bill Woodger DFSORT/ICETOOL 1 Wed Aug 17, 2016 7:06 pm


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