MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

copy one PS file to another PS file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
ranjit5311
Beginner


Joined: 27 Nov 2005
Posts: 27
Topics: 14

PostPosted: Mon Jan 02, 2006 7:30 am    Post subject: copy one PS file to another PS file Reply with quote

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
View user's profile Send private message
stefan
Beginner


Joined: 20 Nov 2003
Posts: 41
Topics: 2
Location: Germany

PostPosted: Mon Jan 02, 2006 9:56 am    Post subject: Reply with quote

I assume that you have basic REXX knowledge. Wink
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
View user's profile Send private message
ranjit5311
Beginner


Joined: 27 Nov 2005
Posts: 27
Topics: 14

PostPosted: Tue Jan 03, 2006 7:11 am    Post subject: Reply with quote

thanks stefan Smile
_________________
One should move lightly through the life, carrying no excess baggage.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group