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

How to Create Mutliple GDG versions in One step


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

New User


Joined: 30 Oct 2006
Posts: 10

PostPosted: Thu Aug 28, 2008 10:17 am
Reply with quote

Hi,

i have a requirement to check whether a GDG version exist or not .

if not then i have to create 24 versions of GDG.

I am using SLE002 utility to check whether Genenration exist or not depending on the output of the Step i want to create 24 versions in One Step is it possible by any way ? Please inform.
Back to top
View user's profile Send private message
manojtyagi_09

New User


Joined: 30 Oct 2006
Posts: 10

PostPosted: Thu Aug 28, 2008 10:31 am
Reply with quote

I want Empty gdg generations.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Aug 28, 2008 10:47 am
Reply with quote

manojtyagi_09,

How about a JCL like this?

Code:
//STEP1    EXEC PGM=IEFBR14                                           
//SYSPRINT DD SYSOUT=*                                               
//DD1      DD DSN=XXXX.TEST.GDG(+1),                                 
//            DISP=(,CATLG),DCB=(RECFM=FB,LRECL=80),SPACE=(TRK,(0,0))
//DD2      DD DSN=XXXX.TEST.GDG(+2),                                 
//            DISP=(,CATLG),DCB=(RECFM=FB,LRECL=80),SPACE=(TRK,(0,0))
...................
...................
//DD24      DD DSN=XXXX.TEST.GDG(+24),                                 
//            DISP=(,CATLG),DCB=(RECFM=FB,LRECL=80),SPACE=(TRK,(0,0))


Thanks,
Arun
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Thu Aug 28, 2008 11:23 am
Reply with quote

Hi,

What is SLE002 ?

Further, I'm pretty sure here -
Quote:
GDG version

you wanted to say "Generation".
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Aug 28, 2008 11:24 am
Reply with quote

Manoj,

Quote:
if not then i have to create 24 versions of GDG.


Are you referring to the V00 part as the "version" or you meant "version" instead of "generation"

Generation and version are different and these terms have always been messed up.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Aug 28, 2008 11:26 am
Reply with quote

Arun,

Quote:
How about a JCL like this?


This creates different "generations" for the current version and not different "versions" as asked by the OP.

This was discussed yesterday. refer to yesterday's posts on this topic.
Back to top
View user's profile Send private message
manojtyagi_09

New User


Joined: 30 Oct 2006
Posts: 10

PostPosted: Thu Aug 28, 2008 11:27 am
Reply with quote

I was talking about generations only version number is not important to me.

Thank you all I got the solution by using IEFBR14 with GDgbase(+1) , (+2) etc ....


SLE002 we are using this utlity to check whether a File is empty, not empty or not cataloged and gives different return codes for each condition. I think this is project specific to us.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Aug 28, 2008 11:31 am
Reply with quote

Manoj,

Quote:
I was talking about generations only version number is not important to me.


But, You had mentioned it wrongly in the first post. Use correct terms so that people don't get confused.

Quote:
I think this is project specific to us.


Might be.
Back to top
View user's profile Send private message
manojtyagi_09

New User


Joined: 30 Oct 2006
Posts: 10

PostPosted: Thu Aug 28, 2008 11:33 am
Reply with quote

Thanks for Correction.


Will keep it in mind in future.

Thanks to all.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Aug 28, 2008 11:59 am
Reply with quote

Aaru,
Quote:
Generation and version are different and these terms have always been messed up

I had this in mind while giving the JCL. sometimes we 'll have to read their minds icon_lol.gif

Thanks,
Arun
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Aug 28, 2008 12:05 pm
Reply with quote

Arun,

Quote:
sometimes we 'll have to read their minds


You are a great mind-reader icon_biggrin.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Thu Aug 28, 2008 12:35 pm
Reply with quote

Quiz question of the week.........................

With a properly thought out application in place, why would you have a requirement to create 20+ EMPTY GDG generations ?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Aug 28, 2008 9:16 pm
Reply with quote

Hello,

Even with an improperly thought out process, this is confusing. Fortunately, i will not need to maintain/support it. I'm not sure how the gdg could be used in this manner. . .

If we understood the actual requirement, we might be able to offer alternative suggestions.
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 How can I add/create a new INIT(initi... TSO/ISPF 2
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
Search our Forums:

Back to Top