Allocate the GDG's as shown in this post for all the available generations and then copy them
The link that u have given, discuss about the How to allocate the current vertion of GDG. But my problem is tht i want to copy all the verion of GDG in the new GDG
Also while creating the new GDG base, my requirement is that the GDG dataset limit of the new GDG shold be same as the older one.
All these thing i want to do in REXX. Actually my REXX program read the old GDG and new GDG name from a file. And it copies the all the verion of older one to new one.
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
Posted: Mon Mar 13, 2006 7:06 pm Post subject:
Quote:
The link that u have given, discuss about the How to allocate the current vertion of GDG. But my problem is tht i want to copy all the verion of GDG in the new GDG
As I said you need to loop within the LISTCAT output like shown in that link until you have copied all the generations.
Quote:
Also while creating the new GDG base, my requirement is that the GDG dataset limit of the new GDG shold be same as the older one.
The rexx exec shown in the link posted by me reads the LISTCAT info of the gdg. so you have all the information you needed to create the new GDG.
Quote:
All these thing i want to do in REXX. Actually my REXX program read the old GDG and new GDG name from a file. And it copies the all the verion of older one to new one.
The code is available for 1 generation all you need to do is change it for all generations.
Though the job ends successfully with "0" return code I don't see either the output GDG base created or the versions of it. Do I need to create the OUTPUT GDG BASE before submitting this JCL?
Would you please let me know where I am going wrong.
TIA. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
I am able to find out why my JCL was not giving output GDG versions though it ended with 0 return code.
I was giving the wrong column positions in both INDD and OUTDD. Now, I've corrected it and am able to see the output Generations created.
Hats off to Kolusu. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
I am very sorry for posting several things here. I have been trying to correct my JCL from STEP030 onwards. Instead of having (OLD,PASS) I catalogued all the temporary files and executed the job till STEP020 only. I am able to see that the output generations are created IN THEM. But, when I continue to execute STEP030 I am not able to get it done.
Would you please let me know if the below is correct or any corrections are required?? Where am I going wrong?
//SORTOUT DD SYSOUT=(*,INTRDR)
//SORTIN DD DATA,DLM=@@
//XXXXXXXX JOB (XXXXXX,XXXX),
CAY6059S NO DELIMETER FOUND FOR DD DATA DATA SET. JCL MAY HAVE BEEN FLUSHED, INCLUDING ANY OTHER JOBS FOLLOWING
_________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
At last, I have successfully executed this exercise. I had to change the DLM from $$ / @@ to XX.
It worked out for me.
Apologies and Thanks. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
Posted: Sat Apr 15, 2006 6:59 am Post subject:
Quote:
One more doubt I have. Instead of having G0001V00 can we have BKUPV001 or something like this?
If your Ouput is a gdg generation then you can only have G000nV00 as that is the standard for GDG's.
However you can create sequential datasets with BKUPV001 or rename the GDG versions like that. However if you do rename the GDG versions then they no longer will be attached to the GDG base.
Yes Kolusu. That is a good point. Thank you. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Kolusu, Would you please explain (if you know) how each parameter works here. Does this ADRDSSU simplifies several things like this? _________________ Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
Posted: Thu Apr 20, 2006 9:10 am Post subject:
ranga_subham,
Please do NOT post solutions on this board if you are not the solution provider.
The solution you posted here does NOT copy a GDG generation to another new GDG generation on one to one basis, it just renames the existing GDG generations to the new GDG generations. You will no longer have the original GDG versions once the job ran.
Quote:
Kolusu, Would you please explain (if you know) how each parameter works here. Does this ADRDSSU simplifies several things like this?
Please learn to use the SEARCH feature. You have been on this site for quite some time and please don't expect to be spoon feed each and every time.
Simply search the forum for ADRDSSU and you will find a topic about the documentation of the the utility
All times are GMT - 5 Hours Goto page Previous1, 2, 3Next
Page 2 of 3
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