Page 1 of 1

Copying multiple GDGs to multiple GDGs

PostPosted: Tue Nov 01, 2011 10:57 pm
by BradSears
Is there a wat to copy multiple GDG's to multiple GDGs without creating multiple steps.

I need to copy 90 GDGS to 90 GDGs but I don't want to create 90 steps starting with -0 to +1, -1 to +2 and so on.

Re: Copying multiple GDGs to multiple GDGs

PostPosted: Tue Nov 01, 2011 11:31 pm
by dick scherrer
Hello and welcome to the forum,

Not that i'm aware of. . .

You could create a PROCedure that uses the generation as a symbolic parameter. Then you would only need one set of jcl and as many EXEC statements as was necessary.

If you know rexx, you could do this in rexx also.

Re: Copying multiple GDGs to multiple GDGs

PostPosted: Tue Nov 01, 2011 11:33 pm
by dick scherrer
Follow on:

You should only post a question one time. The duplicate has been deleted.

Depending on which sort product you have on your system, this will stay here or be relocated.

What you want to do actually has nothing to do with the sort, even though the sort can be used to simply copy.

Re: Copying multiple GDGs to multiple GDGs

PostPosted: Thu Nov 03, 2011 9:45 am
by steve-myers
As dick scherrer says, your process could be done in one job step without using Rexx, but the JCL would be more complicated than you might want. A Rexx solution as others have proposed is certainly possible, but it would require Rexx programming and it may be more complex than you (or for that matter, the people that have proposed the Rexx solution) would like.

Re: Copying multiple GDGs to multiple GDGs

PostPosted: Thu Nov 03, 2011 11:36 am
by NicC
-0 to +1, -1 to +2 and so on


Actually, I think you want to do -98 to 0, -97 to +1 etc unless you really want them in reversed time sequence.

Re: Copying multiple GDGs to multiple GDGs

PostPosted: Thu Nov 03, 2011 1:13 pm
by expat
Take a look at DFdss which has both relative and absolute generation processing capabilities