View previous topic :: View next topic
|
Author |
Message |
manojtyagi_09
New User
Joined: 30 Oct 2006 Posts: 10
|
|
|
|
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 |
|
|
manojtyagi_09
New User
Joined: 30 Oct 2006 Posts: 10
|
|
|
|
I want Empty gdg generations. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi,
What is SLE002 ?
Further, I'm pretty sure here -
you wanted to say "Generation". |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
manojtyagi_09
New User
Joined: 30 Oct 2006 Posts: 10
|
|
|
|
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 |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
manojtyagi_09
New User
Joined: 30 Oct 2006 Posts: 10
|
|
|
|
Thanks for Correction.
Will keep it in mind in future.
Thanks to all. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
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
Thanks,
Arun |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Arun,
Quote: |
sometimes we 'll have to read their minds |
You are a great mind-reader |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|