Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
concatenate two gdgs into a new GDG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
briansheehan

New User


Joined: 02 Jun 2007
Posts: 5
Location: ireland

PostPosted: Thu Jun 14, 2007 2:07 am    Post subject: concatenate two gdgs into a new GDG
Reply with quote

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
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jun 14, 2007 2:13 am    Post subject:
Reply with quote

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
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Thu Jun 14, 2007 11:53 am    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Concatenate different LRECL GDG's Rohit Umarjikar DFSORT/ICETOOL 6 Wed Nov 18, 2015 3:30 am
No new posts Concatenate 2 different VB files to a... santhosh5983 DFSORT/ICETOOL 8 Sat Oct 10, 2015 2:12 am
No new posts How to make REXX process different GDGs? venksiv CLIST & REXX 15 Thu Sep 24, 2015 5:35 pm
No new posts How to concatenate a dataset with SYS... swathykrishnan CLIST & REXX 8 Tue Sep 01, 2015 6:08 pm
No new posts how to concatenate two cobol loadlib ... boyti ko CLIST & REXX 2 Mon Jun 29, 2015 4:41 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us