View previous topic :: View next topic
|
Author |
Message |
briansheehan
New User
Joined: 02 Jun 2007 Posts: 5 Location: ireland
|
|
|
|
I have two GDG datasets (both will be the most recent generations), which I need to concatenate to produce a third GDG - how do I do produce this third file?
eg. ABCDEF.G0283V00
123456.G0283V00
I need the contents of both these files in a new generation, ABCDEF.G0284V00
thanks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You might use IEBGENER or SORT.
For the input, concatenate your.dsn(0) and your.dsn(-1) and use your.dsn(+1) as the output dataset name. If you use this approach, you will not need to change the jcl for every run to use the specific version. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Option #1 if DCB parameters are same
You can use (0) to get current GDG version.
ABCDEF(0)
123456(0)
Option #2 if DCB parameters are different, then code below 2 steps in same job.
copy ABCDEF(0) to new GDG ABCDEF(+1) with DISP=(New,catlg,delete)
copy 123456(0) to same GDG ABCDEF(+1) with DISP=(MOD)
If the GDG are created in same job then you need to use (+1) |
|
Back to top |
|
|
|