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
 

 

How to Create Mutliple GDG versions in One step

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to Create Mutliple GDG versions in One step
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    Post subject: How to Create Mutliple GDG versions in One step
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: 2180
Location: @my desk

PostPosted: Thu Aug 28, 2008 10:47 am    Post subject:
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

Senior Member


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

PostPosted: Thu Aug 28, 2008 11:23 am    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Thu Aug 28, 2008 11:24 am    Post subject: Reply to: How to Create Mutliple GDG versions in One step
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: 1288
Location: Chennai, India

PostPosted: Thu Aug 28, 2008 11:26 am    Post subject: Reply to: How to Create Mutliple GDG versions in One step
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    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Thu Aug 28, 2008 11:31 am    Post subject: Reply to: How to Create Mutliple GDG versions in One step
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    Post subject:
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: 2180
Location: @my desk

PostPosted: Thu Aug 28, 2008 11:59 am    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Thu Aug 28, 2008 12:05 pm    Post subject: Reply to: How to Create Mutliple GDG versions in One step
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 28, 2008 12:35 pm    Post subject:
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

Site Director


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

PostPosted: Thu Aug 28, 2008 9:16 pm    Post subject: Reply to: How to Create Mutliple GDG versions in One step
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    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
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 Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Need to create file with Dynamic Name... kapil27 JCL & VSAM 4 Wed May 25, 2016 9:45 am


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