Page 1 of 1

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

PostPosted: Thu Mar 12, 2009 2:47 am
by D9988
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?

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

PostPosted: Thu Mar 12, 2009 4:36 am
by dick scherrer
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. . .