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



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

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

Postby reddyg » Tue Mar 18, 2014 5:53 pm

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!
reddyg
 
Posts: 1
Joined: Tue Mar 18, 2014 1:30 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby NicC » Wed Mar 19, 2014 4:10 am

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

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

Postby Pedro » Wed Mar 19, 2014 9:31 pm

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.
Pedro Vera
User avatar
Pedro
 
Posts: 684
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post