|
View previous topic :: View next topic
|
| Author |
Message |
anand tr
New User
Joined: 12 Aug 2008 Posts: 41 Location: chennai
|
|
|
|
| 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 |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
the answer is no.
Gerry |
|
| Back to top |
|
 |
Robert Sample
Global Moderator

Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
| 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 |
|
 |
Aaru
Senior Member

Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
 |
revel
Active User
Joined: 05 Apr 2005 Posts: 135 Location: Bangalore/Chennai-INDIA
|
|
|
|
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 |
|
 |
Aaru
Senior Member

Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Technically speaking Gerry, you are perfectly correct
One DDNAME can have multiple DD statements concatenated. |
|
| Back to top |
|
 |
anand tr
New User
Joined: 12 Aug 2008 Posts: 41 Location: chennai
|
|
|
|
thank u all for that..
then i will go as per Superk. |
|
| Back to top |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
| thx expat, between you and CICS_GUY, my gif collection grows. |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
| dbzTHEdinosauer wrote: |
| thx expat, between you and CICS_GUY, my gif collection grows. |
Aaaaaaaaaaaaah, the pleasures of being multi talented  |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10900 Location: italy
|
|
|
|
| Quote: |
| the pleasures of being multi talented |
/horrible pun on
... of being multi giffed
/horrible pun off |
|
| Back to top |
|
 |
|
|