View previous topic :: View next topic
|
Author |
Message |
Todd.Proganal
New User
Joined: 24 May 2013 Posts: 5 Location: us
|
|
|
|
I've been looking through the manuals and perusing the forums but haven't found a solution to a problem I am having writing a sequential dataset to a GDG PDS. The IEBUPDTE and IEBGENER seem the likely candidates. There is always someone who suggests REXX and while I love REXX, it is not an option. How do I specify a member name for a GDG without specifying the gen number itself? STEP6 is how I created the member using the generation number, this will be (+1) in the JCL when all is said and done and will look like STEP7. Any ideas??????
//STEP6 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=my.seql.dataset,DISP=SHR
//SYSUT2 DD DSN=my.pds.g003v00(BBBBBB),DISP=SHR
/*
what I need (and what subsequently can't produce) is something like this:
//STEP7 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=my.seql.dataset,DISP=SHR
//SYSUT2 DD DSN=my.pds(0)(BBBBBB),DISP=SHR
/* |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
Can you do it in two steps? One to create the empty gdg, then the next to have the member name?
Or,
Create a temporary PDS, then copy it to a gdg(+1)? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I recall this from a previous life / posting and you can't do it using relative generations, you must use absolute generations. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
This question has come up before on this forum, and IIRC the answer is that it is possible to create a PDS GDG but you cannot use relative generation with a PDS -- only the absolute generation (GxxxxVnn) can be used. |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hello,
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2D440/3.10.1?SHELF=DGT2BK51&DT=20050602124524
Generation data sets can be sequential, PDSs, or direct. If you use PDSs as generation data sets, you should reference them using absolute data set names rather than relative names.
Example: When referencing a generation data set, it is common to use relative naming, as in A.B.C(0), A.B.C(+1), or A.B.C(-1). You cannot use relative naming with a PDS. You can refer to a specific member of a PDS that is a generation data set. Use absolute names such as A.B.C.G0005V00(member) when referring to a member of a PDS. |
|
Back to top |
|
|
Todd.Proganal
New User
Joined: 24 May 2013 Posts: 5 Location: us
|
|
|
|
Ed, that worked perfectly! Thanks. Added 2 extra steps but got the job done. Have a virtual beer on me. |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
Cheers!
Which way did you go? temporary/copy or empty? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
I'm also curious to know about which solution worked and so is the "bump"! |
|
Back to top |
|
|
Dale Robertson
New User
Joined: 21 Jun 2013 Posts: 44 Location: U.S.A.
|
|
|
|
Todd,
Why would you want a PDS to be a GDG? That's like re-doing paperwork every day.
Maybe it's me. I just don't see the point. Thank you.
r
"There are things that are just not done like listening to the Beatles without earmuffs."
--James Bond [Sean Connery] - Goldfinger |
|
Back to top |
|
|
|