MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Want the JCL to create a GDG

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Prosenjit2
Beginner


Joined: 02 Mar 2005
Posts: 13
Topics: 8
Location: India

PostPosted: Thu Sep 13, 2007 3:04 am    Post subject: Want the JCL to create a GDG Reply with quote

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
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Thu Sep 13, 2007 3:25 am    Post subject: Reply with quote

It doesn't work that way, versions are done manually only.....
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Thu Sep 13, 2007 6:27 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Sep 13, 2007 7:05 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu Sep 13, 2007 8:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Prosenjit2
Beginner


Joined: 02 Mar 2005
Posts: 13
Topics: 8
Location: India

PostPosted: Fri Sep 14, 2007 7:14 am    Post subject: Reply with quote

Thanks you all for your replies.
Back to top
View user's profile Send private message
javedsk12
Beginner


Joined: 14 Dec 2007
Posts: 66
Topics: 36
Location: pune

PostPosted: Sat Dec 15, 2007 1:11 am    Post subject: Reply with quote

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
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Dec 17, 2007 2:42 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group