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



IBM's Command List programming language & Restructured Extended Executor

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

Postby sambathjai21 » Tue Jun 24, 2014 5:19 pm

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
sambathjai21
 
Posts: 3
Joined: Thu Nov 21, 2013 6:55 pm
Has thanked: 0 time
Been thanked: 0 time

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

 

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

Postby enrico-sorichetti » Tue Jun 24, 2014 6:14 pm

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 ???
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

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

Postby Pedro » Tue Jun 24, 2014 9:07 pm

My guess is that the poster wants a rexx program that will build and submit a batch job that runs the DFDSS utility.
Pedro Vera
User avatar
Pedro
 
Posts: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times

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

Postby steve-myers » Wed Jun 25, 2014 3:26 am

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.
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

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

Postby sambathjai21 » Thu Jun 26, 2014 4:33 pm

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..
sambathjai21
 
Posts: 3
Joined: Thu Nov 21, 2013 6:55 pm
Has thanked: 0 time
Been thanked: 0 time


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post