Posted: Wed Jun 14, 2006 9:30 am Post subject: merging GDG at end of month
Hi gurus,
JOB1 run daily and it create a GDG verion daily. We need to write JCl which will merge all the version created in the particular month. This job will run at the end of the month.
How this can be achieved .
TIA
Ranjit _________________ One should move lightly through the life, carrying no excess baggage.
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Wed Jun 14, 2006 9:41 am Post subject:
ranjit5311,
Just give the base of GDG as input and code disp=(old,delete,keep). By doing so the daily base will have versions starting over from 1 after the monthly job.
According, to the soltuion above, If we run the JOB at the end of month feb then it will merge gdg vertion from JAN to Feb. But I want just the version of the feb month.
TIA
Ranjit _________________ One should move lightly through the life, carrying no excess baggage.
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Wed Jun 14, 2006 10:50 am Post subject:
Quote:
According, to the soltuion above, If we run the JOB at the end of month feb then it will merge gdg vertion from JAN to Feb. But I want just the version of the feb month.
ranjit5311,
Look carefully on the DISP parameter on this input GDG. I am Deleting all the versions which is explained clearly in my post.
according to his query he asked you to keep only last month backup...
if you look into jcl , jcl disposition refers to DISP=(OLD,DELETE,KEEP)..means you are deleting the existing version if it runs successfully if it not it keeps that dataset..
could you please explain me. in the JCL $$DD01 referring to first DD then what about the second DD... it automatically refers to the second DD?
one more doubt on KEEP, what is difference between KEEP and UNCATALOG..what is differences between PASS. _________________ Thanks&Regards
Prasanth Thavva
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