JCL to concatenate multiple GDS's into 1 file using 1 step?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

JCL to concatenate multiple GDS's into 1 file using 1 step?

Postby D9988 » Thu Mar 12, 2009 2:47 am

I'd like to concatenate 99 generations of a dataset into one file. I know how to do this by manually by keying in each generation, but it got me to wondering if it's possible to do this easier by referencing all GDG's at once? Or using some type of loop to read through all GDG's?

If possible can someone please give some JCL code examples?
David
D9988
 
Posts: 34
Joined: Fri Nov 09, 2007 10:55 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL to concatenate multiple GDS's into 1 file using 1 step?

Postby dick scherrer » Thu Mar 12, 2009 4:36 am

Hello,

If you want to copy all of the cataloged generations, specify only the gdg base as the input file to the copy.

Your sort product will most likely copy the files faster than some other utility. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post