|
|
| Author |
Message |
chandrashekar suryapet
New User
Joined: 10 May 2008 Posts: 2 Location: pune
|
|
|
|
Is it possible to copy GDG base???
if yes then what's the utility to copy GDG base???
Chandrashekar S. |
|
| Back to top |
|
 |
References
|
Posted: Mon Jul 14, 2008 12:02 pm Post subject: Re: Copy GDG base |
 |
|
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1519 Location: germany
|
|
|
|
i would think this question would elicit better responses in the UTILITIES forum.
but, before you post another thread, why don't you think about your question. What is a GDG base? once you understand that, you may want to rephrase your question. |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 560
|
|
|
|
Hi,
do you mean how to copy all GDG's without specifying each generation dataset ?
If so , just specify a.b.c instead of a.b.c(0) a.b.c(-1) etc.
You can use any utility you like to perform the copy.
Gerry |
|
| Back to top |
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1519 Location: germany
|
|
|
|
Gerry,
what would the output dd look like? |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 560
|
|
|
|
Hi Dick,
is this a trick question ?
Gerry |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 7997 Location: 221 B Baker St
|
|
|
|
Hi Gerry,
| Quote: |
| is this a trick question ? |
Ah. . . I don't think so. . .
Maybe i misunderstand the requirement. . . |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 560
|
|
|
|
Hi,
based on what I understood as the requirement, I would use something like
| Code: |
//IEBGENER EXEC PGM=IEBGENER
//SYSUT1 DD DSN=CSCSGLC.FILE01,DISP=SHR * all gdg entries*
//SYSUT2 DD DSN=OUTPUT-NAME,
// DISP=(,CATLG,DELETE),
// UNIT=CART
OR
// UNIT=(SYSDA,3),SPACE=(CYL,(100,20),RLSE)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
|
Gerry |
|
| Back to top |
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1519 Location: germany
|
|
|
|
Gerry,
no, it was not a trick question ( ok, well, sorta).
My first response to the OP was due to his wording. (yeah, I am a nit picker. I have trouble second guessing questions that do not use common, acceptable jargon. - miss-use of words).
My response to you was based on the fact that unless you individually copy'ed each generation, you would end up with only one output file. That would not be a 'pure copy'. But, then we really do not know what the OP wants. |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 560
|
|
|
|
Hi Dick,
yes I was trying to second guess the OP requirement which can have many answers.
I take your point.
Gerry |
|
| Back to top |
|
 |
Moved: Mon Jul 14, 2008 5:46 pm by superk From DB2 to SMS & VSAM |
|
|