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 

Copying all seqfiles

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
bindu
Beginner


Joined: 05 Jan 2003
Posts: 17
Topics: 7

PostPosted: Thu Feb 27, 2003 8:30 am    Post subject: Copying all seqfiles Reply with quote

Hello ,
We have lot of sequential files with the naming convention starting with TSS.USERID.* .
Now our client has decided to delete all TSS stuff.
So we have to rename it to another one DOU2. Is there any method for doing this at one go.Only the Tss need to be changed to DOU2.Rest of the naming is the same.
Can anybody help me on this..THis has to be done soon
Regards,
Bindu
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Feb 27, 2003 11:48 am    Post subject: Reply with quote

bindu,

You can use IDCAMS ALTER command for a mass generic named datasets.The following JCL will give you the desired results.

Code:

//STEP0100 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN    DD *
  ALTER 'TSS.USERID.*'  -
  NEWNAME('DOU2.USERID.*')
/* 


Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
binduvnair
Beginner


Joined: 07 Jan 2003
Posts: 16
Topics: 8

PostPosted: Fri Feb 28, 2003 1:13 am    Post subject: Reply with quote

thanks Kolusu .. will try out this .. thanks a lot
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 -> Job Control Language(JCL) 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