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
 

 

Using selective generations of GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Using selective generations of GDG
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

Moderator Team Head


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

PostPosted: Thu Sep 11, 2008 5:38 pm    Post subject: Reply to: Using selective generations of GDG
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: 1703
Location: Australia

PostPosted: Thu Sep 11, 2008 5:39 pm    Post subject:
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: 7997
Location: Bellevue, IA

PostPosted: Thu Sep 11, 2008 5:39 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Thu Sep 11, 2008 5:41 pm    Post subject: Reply to: Using selective generations of GDG
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    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Thu Sep 11, 2008 5:45 pm    Post subject: Reply to: Using selective generations of GDG
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: 1703
Location: Australia

PostPosted: Thu Sep 11, 2008 5:49 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Sep 11, 2008 5:54 pm    Post subject:
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    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Sep 12, 2008 1:19 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Fri Sep 12, 2008 1:37 am    Post subject: Reply to: Using selective generations of GDG
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    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 Compare each GDG Generations to other... Ayyappa1 JCL & VSAM 13 Tue Jun 28, 2016 1:48 pm
No new posts Editing "member generations"... Ricardo Viegas TSO/ISPF 1 Tue Dec 29, 2015 7:27 pm
No new posts Need to do selective update in JCL manuwankenobi DFSORT/ICETOOL 1 Mon Sep 07, 2015 4:23 pm
No new posts DFSORT - Retrieve selective records f... narasimha_devi DFSORT/ICETOOL 8 Thu Aug 06, 2015 4:12 pm
No new posts Selective execution of a queries Delip DB2 9 Fri Jan 16, 2015 3:51 pm


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