Change first qualifier of the datasets together.

JES2/3, JCL, utilities.
Post Reply
Pragya
Registered Member
Posts: 65
Joined: Wed Jun 19, 2013 9:49 am

Change first qualifier of the datasets together.

Post by Pragya »

Hi,

I have a many many sequential files which follow the naming convention like ABC.DEF.* but now all the files starting with ABC.* will be deleted for some storage initiative. Now we have to rename all these datasets to another naming convention like XYZ.*. Please help if there is a way for doing this in batch with smallest possible effort rather than copying them one by one?

Any guidance in this regard will be great.
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Change first qualifier of the datasets together.

Post by nicc »

Use your backup software to back up the data sets and then restore with the new name.
Regards
Nic
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1889
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Change first qualifier of the datasets together.

Post by Robert Sample »

Have you talked to your site support group? They could use ISMF to rename the data sets fairly easily; most sites do not allow application programmers to use ISMF.
Pragya
Registered Member
Posts: 65
Joined: Wed Jun 19, 2013 9:49 am

Re: Change first qualifier of the datasets together.

Post by Pragya »

As this was an initiative from the application team, site support group left it on us. We did it manually using sort copy.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1889
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Change first qualifier of the datasets together.

Post by Robert Sample »

As long as the number of qualifiers remains the same, ADRDSSU is a fast, easy way to change data set high level qualifiers. It will not convert A.B.C.? to Z.Y.?, though. Back up and then restore with RENAMEUNCONDITIONAL.
Pragya
Registered Member
Posts: 65
Joined: Wed Jun 19, 2013 9:49 am

Re: Change first qualifier of the datasets together.

Post by Pragya »

Thanks for the idea. I shall explore that.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”