Copying multiple GDGs to multiple GDGs



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

Copying multiple GDGs to multiple GDGs

Postby BradSears » Tue Nov 01, 2011 10:57 pm

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.
BradSears
 
Posts: 1
Joined: Tue Nov 01, 2011 10:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Copying multiple GDGs to multiple GDGs

Postby dick scherrer » Tue Nov 01, 2011 11:31 pm

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

Re: Copying multiple GDGs to multiple GDGs

Postby dick scherrer » Tue Nov 01, 2011 11:33 pm

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

Re: Copying multiple GDGs to multiple GDGs

Postby steve-myers » Thu Nov 03, 2011 9:45 am

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.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Copying multiple GDGs to multiple GDGs

Postby NicC » Thu Nov 03, 2011 11:36 am

-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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Copying multiple GDGs to multiple GDGs

Postby expat » Thu Nov 03, 2011 1:13 pm

Take a look at DFdss which has both relative and absolute generation processing capabilities
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post