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

PDS member insertion into a GDG dataset


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

New User


Joined: 24 May 2013
Posts: 5
Location: us

PostPosted: Wed Jun 05, 2013 5:43 pm
Reply with quote

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

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Wed Jun 05, 2013 5:55 pm
Reply with quote

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

Global Moderator


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

PostPosted: Wed Jun 05, 2013 6:12 pm
Reply with quote

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8569
Location: Dubuque, Iowa, USA

PostPosted: Wed Jun 05, 2013 6:13 pm
Reply with quote

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

Global Moderator


Joined: 28 Aug 2007
Posts: 1689
Location: Tiruppur, India

PostPosted: Wed Jun 05, 2013 7:11 pm
Reply with quote

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
View user's profile Send private message
Todd.Proganal

New User


Joined: 24 May 2013
Posts: 5
Location: us

PostPosted: Fri Jun 07, 2013 6:48 pm
Reply with quote

Ed, that worked perfectly! Thanks. Added 2 extra steps but got the job done. Have a virtual beer on me. icon_smile.gif
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Mon Jun 10, 2013 7:20 pm
Reply with quote

Cheers!

Which way did you go? temporary/copy or empty?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Mon Jun 24, 2013 6:18 pm
Reply with quote

I'm also curious to know about which solution worked and so is the "bump"!
Back to top
View user's profile Send private message
Dale Robertson

New User


Joined: 21 Jun 2013
Posts: 44
Location: U.S.A.

PostPosted: Tue Jun 25, 2013 6:38 pm
Reply with quote

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
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 to determine is PDS member is bei... CLIST & REXX 5
This topic is locked: you cannot edit posts or make replies. ICETool reporting 2 das old dataset DFSORT/ICETOOL 13
No new posts Printing a dataset in DUMP format wit... ABENDS & Debugging 2
No new posts Capture GDG Dataset Name JCL & VSAM 10
No new posts DB2 group member usage DB2 0
Search our Forums:

Back to Top