Page 1 of 1

Re-name all the datasets with ABC.* to ABCD.*

PostPosted: Tue Mar 18, 2014 5:53 pm
by reddyg
Hi,

I have to rename all the datasets, lets say starting with ABC.* to ABCD.* . I have around 2000 files with ABC.*, how can I re-name all at once? Is there any way to do thru ISPF commands or any other mainframe utilities?

please help me.

Thanks!

Re: Re-name all the datasets with ABC.* to ABCD.*

PostPosted: Wed Mar 19, 2014 4:10 am
by NicC
There are many ways as a search of the forum - which you should have done before posting - would have revealed. One way is to back up all the datasets using ADRDSSU and then restoring them with the new name. Or you could write a rexx program to list the datasets, read the list and issue rename commands. OTher ways are possible.

Re: Re-name all the datasets with ABC.* to ABCD.*

PostPosted: Wed Mar 19, 2014 9:31 pm
by Pedro
One way is to back up all the datasets using ADRDSSU and then restoring them with the new name.

Perhaps I am wrong, but won't that leave the old data sets still there? Instead of a rename, you will have two copies of the same data.

Also, data movement will cause tremendous overhead. There is a significant performance difference between an ADRDSSU DUMP & RESTORE compared with a simple RENAME of each individual data set.