Hello Mary,

Go to http://www.cbttape.org/ and look for a program called GDGCOPY in File
#482.  That program copies a GDG in "reverse" order, that is,
chronologically.

There are lots of good little tidbits at that website.

Best regards,
Ray 

> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Groebner, Mary
> Sent: Monday August 29 2005 13:43
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Processing GDG datasets in chronological order
> 
> Hi all,
> 
>  
> 
>   First time poster (to this list anyway) here.
> 
>  
> 
>   I have a question that perhaps someone out there has 
> already encountered and addressed.  What I need to do is 
> process all existing generations of a GDG each time a given 
> job runs.  The number of generations processed will vary, and 
> so, of course would the absolute generation numbers.  
> 
>   I know that if I simply code the DD statement so that it 
> refers to the GDG base, I will pick up all the existing 
> generations of that GDG.  The problem I face is that, when 
> you code a DD statement this way, it processes the GDGs in 
> reverse chronological order (newest to oldest) but the 
> software that I need to process these GDGs through requires 
> that they be in order of creation (oldest to newest).  
> 
>   I know I can write a program that'll keep track of which 
> GDG's I've processed in some sort of control file and/or 
> dynamically create the JCL each time that way, but I'm 
> wondering (hoping) for a more transparent (and easier to 
> maintain and/or pass on) solution.  
> 
>  
> 
>   Any ideas?  Thanks in advance.

----------------------------------------------------------------------
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

Reply via email to