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