At 10:07 +0530 on 08/03/2005, sreekanth dumpa wrote about Copying GDG
versions in Reverse order:
Hi,
I have taken dump of GDG by using base into flat file using IEBGENER
Utility. In flat file it is copying the latest version first and the old
Versions next. But I want to copy them in reverse order. i.e. old version
First and later version next. Here is example of the problem
[snip]
Please help me out.
Thanks in advance
Sreekanth
There is a simple way to do this IF you know how many generations
there are. Given your 3 Generation example, the solution is:
//COPY EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT2 DD DISP=(NEW,CATLG),DSN=.... etc
//SYSUT1 DD DSN=GDG-FILE-NAME(-2),DISP=OLD ... etc
// DD DSN=GDG-FILE-NAME(-1),DISP=OLD ... etc
// DD DSN=GDG-FILE-NAME(0),DISP=OLD ... etc
Put the earliest Generation on the SYSUT1 card and count up on the
succeeding cards until you get to 0.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html