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

Using selective generations of GDG


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anand tr

New User


Joined: 12 Aug 2008
Posts: 41
Location: chennai

PostPosted: Thu Sep 11, 2008 5:36 pm
Reply with quote

I have a GDG which has around 25 generations. I need to feed only the latest 13 generations of the same GDG to a program. Is there any method to feed these versions in a single DD statement?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Sep 11, 2008 5:38 pm
Reply with quote

Aren't you familiar with dataset concatenation?

//DDNAME DD DSN=MY.GDG(0)
// DD DSN=MY.GDG(-1)
// DD DSN=MY.GDG(-2)
...
// DD DSN=MY.GDG(-12)
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Sep 11, 2008 5:39 pm
Reply with quote

Hi,

the answer is no.

Gerry
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Sep 11, 2008 5:39 pm
Reply with quote

You can concatenate the 13 generations together but as far as I know you can only specify a single generation or ALL generations in one DD statement.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Sep 11, 2008 5:41 pm
Reply with quote

Anand,

Quote:
Hi,

the answer is no.

Gerry


This NO is for a portion of a post which has been deleted from the original post.
Back to top
View user's profile Send private message
revel

Active User


Joined: 05 Apr 2005
Posts: 135
Location: Bangalore/Chennai-INDIA

PostPosted: Thu Sep 11, 2008 5:41 pm
Reply with quote

Anand,

Since u need to use only latest 13 generation of GDG, you can concatenate that in single DD statement

ie

Code:
//ddname DD DSN=GDG 1
//            DD  DSN=GDG 2
     .
     .
     .
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Sep 11, 2008 5:45 pm
Reply with quote

Kevin,

Quote:
Huh? You mean my example won't work?


It would work for sure.

The confusion is because

OP had asked whether he can code as shown below

Code:
//DDNAME DD DSN=MY.GDG(0-13)


For which gicchet replied NO. The NO is not for your POST which had the example of concatenation.

Hope it is clear now.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Sep 11, 2008 5:49 pm
Reply with quote

Hi,

in order to concatenate multiple files you need more than 1 DD statement,

hence my answer still stands, it cannot be done with just 1 DD statement.

Gerry
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Sep 11, 2008 5:54 pm
Reply with quote

Technically speaking Gerry, you are perfectly correct icon_fU.gif

One DDNAME can have multiple DD statements concatenated.
Back to top
View user's profile Send private message
anand tr

New User


Joined: 12 Aug 2008
Posts: 41
Location: chennai

PostPosted: Thu Sep 11, 2008 7:57 pm
Reply with quote

thank u all for that.. icon_biggrin.gif
then i will go as per Superk.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Sep 11, 2008 8:02 pm
Reply with quote

thx expat, between you and CICS_GUY, my gif collection grows.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Sep 12, 2008 1:19 am
Reply with quote

dbzTHEdinosauer wrote:
thx expat, between you and CICS_GUY, my gif collection grows.


Aaaaaaaaaaaaah, the pleasures of being multi talented icon_rolleyes.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Fri Sep 12, 2008 1:37 am
Reply with quote

Quote:
the pleasures of being multi talented


/horrible pun on
... of being multi giffed
/horrible pun off
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 Rexx to list generations of GDGs and ... CLIST & REXX 3
No new posts Selective extract of multi-record-typ... SYNCSORT 4
No new posts Group selective VB records - Trailer ... DFSORT/ICETOOL 16
No new posts Compare each GDG Generations to other... JCL & VSAM 13
No new posts Editing "member generations"... TSO/ISPF 1
Search our Forums:

Back to Top