View previous topic :: View next topic |
Author |
Message |
Prosenjit2 Beginner
Joined: 02 Mar 2005 Posts: 13 Topics: 8 Location: India
|
Posted: Thu Sep 13, 2007 3:04 am Post subject: Want the JCL to create a GDG |
|
|
Hi,
I want my GDG to be created as
MYTEST.LIB.G0000V01
MYTEST.LIB.G0000V02.
Can anybody please help me with the JCL that will generate the GDG Base for this type of versions.
Many Thanks |
|
Back to top |
|
 |
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
Posted: Thu Sep 13, 2007 3:25 am Post subject: |
|
|
It doesn't work that way, versions are done manually only..... |
|
Back to top |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Thu Sep 13, 2007 6:27 am Post subject: |
|
|
prosenjit,
you can get it from manual. anyway see below.
Code: |
//EXEC1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE GDG ( NAME(MYTEST.LIB) -
LIMIT(5) -
NOEMPTY -
SCRATCH )
/*
|
|
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Sep 13, 2007 7:05 am Post subject: |
|
|
vkphani,
Read OP's question once again. He wanted an incremental version number
The generation and version numbers are in the form GxxxxVyy, where xxxx is an unsigned 4-digit decimal generation number (0001 through 9999) and yy is an unsigned 2-digit decimal version number (00 through 99). For example:
A.B.C.G0001V00 is generation data set 1, version 0, in generation data group A.B.C.
A.B.C.G0009V01 is generation data set 9, version 1, in generation data group A.B.C.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Thu Sep 13, 2007 8:17 am Post subject: |
|
|
At a minimum, the first GDS would need to be MYTEST.LIB.G0001V00 and then you could create other versions of generation 1 by coding the explicit DSN with version number in your JCL.
Do you understand that G0001V02 replaces G0001V01 in the catalog? Only 1 version is the live one. If this is not homework, I have to ask why you want to do this???? _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
 |
Prosenjit2 Beginner
Joined: 02 Mar 2005 Posts: 13 Topics: 8 Location: India
|
Posted: Fri Sep 14, 2007 7:14 am Post subject: |
|
|
Thanks you all for your replies. |
|
Back to top |
|
 |
javedsk12 Beginner

Joined: 14 Dec 2007 Posts: 66 Topics: 36 Location: pune
|
Posted: Sat Dec 15, 2007 1:11 am Post subject: |
|
|
whether it is possible because for a single version we can create 255 generation but can we cretae a single generation for a single version _________________ javed
-----------------------
The Word Impossible it self says i am possible(im possible) |
|
Back to top |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Mon Dec 17, 2007 2:42 am Post subject: |
|
|
javedsk12 wrote: | whether it is possible because for a single version we can create 255 generation but can we cretae a single generation for a single version |
There is no need to create a GDG if you wanna maintain single generation per single version. Just a creation of sequential file is enough.
You can't create a single generation for a single version. |
|
Back to top |
|
 |
|
|