View previous topic :: View next topic |
Author |
Message |
ranjit5311 Beginner
Joined: 27 Nov 2005 Posts: 27 Topics: 14
|
Posted: Mon Jan 02, 2006 7:30 am Post subject: copy one PS file to another PS file |
|
|
I want to copy old PS file to new PS file by REXX program. How can I do this?
If the sets of old PS files name to be copied is present in one file. While anothe file contain the coressponding name of the new PS file. How can we copy all the file through the REXX program.
Thanks
Ranjit |
|
Back to top |
|
|
stefan Beginner
Joined: 20 Nov 2003 Posts: 41 Topics: 2 Location: Germany
|
Posted: Mon Jan 02, 2006 9:56 am Post subject: |
|
|
I assume that you have basic REXX knowledge.
So read both files containing the dataset names in two stem variables. Then loop through the elements and generate and issue the TSO command REPRO with the corresponding parameters. If the new dataset does not exist you have to generate first an ALLOCATE/FREE statement with the LIKE clause pointing to the old dataset. If the datasets are too big for online processing you should write out the REPRO statements to a separate dataset and process this file afterwards by an IDCAMS job.
Hope this helps.
Stefan |
|
Back to top |
|
|
ranjit5311 Beginner
Joined: 27 Nov 2005 Posts: 27 Topics: 14
|
Posted: Tue Jan 03, 2006 7:11 am Post subject: |
|
|
thanks stefan _________________ One should move lightly through the life, carrying no excess baggage. |
|
Back to top |
|
|
|
|