Page 1 of 1

How to copy GDG versions as a flat file using REXX code

PostPosted: Tue Jun 24, 2014 5:19 pm
by sambathjai21
Hi Friends,

I'm in a need to copy all the generations of GDG using REXX code.

For eg:

WXX080.CA99DH01.M.CONTROL.FILE
WXX080.CA99DH01.M.CONTROL.FILE.G0172V00
WXX080.CA99DH01.M.CONTROL.FILE.G0173V00
WXX080.CA99DH01.M.CONTROL.FILE.G0174V00
WXX080.CA99DH01.M.CONTROL.FILE.G0175V00
WXX080.CA99DH01.M.CONTROL.FILE.G0176V00
WXX080.CA99DH01.M.CONTROL.FILE.G0177V00
WXX080.CA99DH01.M.CONTROL.FILE.G0178V00
WXX080.CA99DH01.M.CONTROL.FILE.G0179V00
WXX080.CA99DH01.M.CONTROL.FILE.G0180V00
WXX080.CA99DH01.M.CONTROL.FILE.G0181V00

If I provide the GDG base as input, REXX code should take backup of all the generations like 'WXX080.CA99DH01.M.CONTROL.FILE.G0172V00.BK', 'WXX080.CA99DH01.M.CONTROL.FILE.G0173V00.BK' till the 'G0181V00'.

I wrote a code but it's copying only the first generation. I'm not sure how to provide loop in REXX code to read all the GDG generations to take backup.

Please advice. Thanks in advance.

Regards,
Sambath

Re: How to copy GDG versions as a flat file using REXX code

PostPosted: Tue Jun 24, 2014 6:14 pm
by enrico-sorichetti
I'm in a need to copy all the generations of GDG using REXX code.


NO and NO and NO ...
You need to copy all the generations of a GDG FULL STOP

Please advice.


using rexx code is just a silly requirement , nobody here will waste time on providing advice on it

did You / Your support ever hear of DFDSS ???

Re: How to copy GDG versions as a flat file using REXX code

PostPosted: Tue Jun 24, 2014 9:07 pm
by Pedro
My guess is that the poster wants a rexx program that will build and submit a batch job that runs the DFDSS utility.

Re: How to copy GDG versions as a flat file using REXX code

PostPosted: Wed Jun 25, 2014 3:26 am
by steve-myers
I'm not sure the topic starter really knows.
  • Does he want to copy each unique generation to a unique output data set, which is the usual connotation of the word "copy."
  • Does he want to copy all of the generations to a single data set? In what order? Does he want to be able to recover the original data set?
With no answers to these questions, no sane responder can even start to respond.

Re: How to copy GDG versions as a flat file using REXX code

PostPosted: Thu Jun 26, 2014 4:33 pm
by sambathjai21
Friends,

Thanks for your time.

Does he want to copy each unique generation to a unique output data set, which is the usual connotation of the word "copy." - yes. I got the expected output..