|
View previous topic :: View next topic
|
| Author |
Message |
pkmainframe
New User
Joined: 14 Jun 2005 Posts: 16 Location: India
|
|
|
|
| hi Please let me know how to copy GDG into a flat file with the output should have lower version to higher version |
|
| Back to top |
|
 |
Rupesh.Kothari
Member of the Month

Joined: 27 Apr 2005 Posts: 463
|
|
|
|
HI,
Try following code.
| Code: |
//STP0010 EXEC AIDCAMS
//INPUT1 DD DSN=GDG1,DISP=SHR
// DD DSN=GDG2,DISP=SHR
// DD DSN=GDG3,DISP=SHR
//OUTPUT1 DD DSN=Output file,
// DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=300),
// UNIT=TEMP,SPACE=(CYL,(1,1),RLSE)
//SYSIN DD *
REPRO IFILE(INPUT1) OFILE(OUTPUT1)
/* |
Hope this hepl you.
Regards
Rupesh |
|
| Back to top |
|
 |
sendil
New User
Joined: 30 Jun 2005 Posts: 27
|
|
|
|
by using sor fields= copy command, you can copied the gdg version to some other flat file. Before going to sort, the input gdg versions are concatenated.
If i am wrong please correct me
Thanks
Sendil |
|
| Back to top |
|
 |
Virgon Warnings : 1 New User

Joined: 17 Jun 2005 Posts: 14 Location: Chennai
|
|
|
|
Hi,
What will happen if I give the base GDG name alone and trying copying it by IEBGENER ?
Regards,
Naren |
|
| Back to top |
|
 |
Kevin
Active User

Joined: 25 Aug 2005 Posts: 234
|
|
|
|
| Virgon wrote: |
Hi,
What will happen if I give the base GDG name alone and trying copying it by IEBGENER ?
Regards,
Naren |
You will copy all of the generations that are associated with the base, in LIFO order (i.e. generation 0 first, then -1, then -2, and so on). |
|
| Back to top |
|
 |
|
|