Joined: 27 May 2003 Posts: 22 Topics: 2 Location: India
Posted: Tue May 27, 2003 4:22 am Post subject: How to copy all Generations from Input GDG to Output GDG
Hi Gurus,
Is there any way to copy all the generations in Input GDG to Output GDG (copy is one to one i.e first generation of input GDG to First Generation of Output GDG ,Second to Second ,etc..).
Let us assume we have only Output GDG base.
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Tue May 27, 2003 5:40 am Post subject:
Pulikonda,
The following DFSORT/ICETOOL Jcl will give you the results.If you have syncsort at your shop then change PGM Synctool instead of Icetool.A brief explanation of the job.
1. The first step list all the GDG's for the Base USERID.XXX.FILEA using IDCAMS
2. Take the output from this step and create 3 files for copying the gdg's to the new gdg.
3. Now step030 will merge all these 3 files with a job card and submit to the INTRDR.
File: OUTDD. In here you may need to change the outrec cards a lil bit, because the gdgbase name you gave is an example(USERID.XXX.FILEA).i.e the listcat output will have the gdg version name starting at pos 17.we need to grab the G000NV00 portion and stack it to the output GDG version name.In here I calculated that G000NV00 starts in position 34 and a length of 8 bytes. so change it accordingly.if your Input gdg has versions starting from 5, the output GDG also will have the version starting at 5.
Joined: 03 Dec 2002 Posts: 114 Topics: 0 Location: Sydney, Australia
Posted: Tue Jun 03, 2003 4:47 pm Post subject:
Not that I've tried it, but you could probably use backup restore utilities eg DFSDSS to backup and then rename the GDG. _________________ Regards,
Mike.
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Wed Jan 04, 2006 10:33 am Post subject:
mainframemouli,
The above specified job creates a New job dynamically and submitts it via INTRDR. You can cross check to see if the job is created correctly. change the following statement in step030
Code:
//SORTOUT DD SYSOUT=(*,INTRDR)
to
Code:
//SORTOUT DD SYSOUT=*
Now post the created JCL here and we will check for errors.
When you use, ICETOOL the sysout messages are routed to //TOOLMSG and //DFSMSG and not to //SYSOUT. (See STEP030 above). Either Change the pgm name to PGM=SORT or use //TOOLMSG and //DFSMSG instead of //SYSOUT.
Also, as kolusu said, you need to use //TOOLIN instead of //SYSIN - for ICETOOL.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum