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
 

 

PDS member insertion into a GDG dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: PDS member insertion into a GDG dataset
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 05, 2013 6:12 pm    Post subject:
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: 7913
Location: Bellevue, IA

PostPosted: Wed Jun 05, 2013 6:13 pm    Post subject:
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: 1445
Location: Azeroth

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

Hello,

http://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    Post subject: solution
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    Post subject:
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

Senior Member


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

PostPosted: Mon Jun 24, 2013 6:18 pm    Post subject:
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    Post subject: PDS as GDG?
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    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
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm


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