Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Rename dasd

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
robyjhl

New User


Joined: 29 Oct 2019
Posts: 2
Location: venezuela

PostPosted: Tue Oct 29, 2019 10:11 pm    Post subject: Rename dasd
Reply with quote

Hi, I need to change the name of a disk or dasd volume. Can somebody help me. Example the volume is called abc123 and I want to rename it by cde123. Thank you
Back to top
View user's profile Send private message

sergeyken

Active Member


Joined: 29 Apr 2008
Posts: 607
Location: Maryland

PostPosted: Tue Oct 29, 2019 10:40 pm    Post subject: Re: Rename dasd
Reply with quote

robyjhl wrote:
Hi, I need to change the name of a disk or dasd volume. Can somebody help me. Example the volume is called abc123 and I want to rename it by cde123. Thank you

Only system support staff is allowed to do this.

Based on your terminology, you have no idea who they are, isn't it?
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 758
Location: The Universe

PostPosted: Tue Oct 29, 2019 11:20 pm    Post subject:
Reply with quote

As sergeyken says, only systems support should alter the volume serial of a disk volume. Us dinosaurs call this "clipping" the volume. Don't ask me why. If I ever knew, it's been long forgotten.

It's more complicated than it appears.
  • Every cataloged data set on the volume has to be re cataloged with the new volume serial.
  • If the volume is shared with other systems you have to be sure the other systems know about it.
  • Any data set on the volume with a RACF "discrete" profile has to have its profile altered to reflect the new volume.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 323
Location: Denmark

PostPosted: Tue Oct 29, 2019 11:52 pm    Post subject:
Reply with quote

I will say 'dont do that'. As pointed out above you will have issues with catalog, VVDS, VTOC index etc etc.
I would create a new volume and use ADRDSSU to move datasets across.
Unless it is empty, in which case you can use the ICKDSF REFORMAT command.
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 758
Location: The Universe

PostPosted: Wed Oct 30, 2019 4:32 am    Post subject:
Reply with quote

Mr. Jensen is correct. I completely forgot the VTOC index. To be honest I have no idea about how to deal with the VVDS. Mr. Jensen's idea to copy the data sets on the volume to a new volume with the correct volume serial may be the most practical way to proceed.
Back to top
View user's profile Send private message
Joerg.Findeisen

New User


Joined: 15 Aug 2015
Posts: 44
Location: Germany

PostPosted: Wed Oct 30, 2019 1:25 pm    Post subject:
Reply with quote

From our shops catalog tool, some hints what would be necessary..

The following functions will be performed:
- Allocate and Reserve VTOC
- Rename of SYS1.VVDS.Voldvol to SYS1.VVDS.Vnewvol
- Rename of VVDS self describing record
- Rename of SYS1.VTOCIX.oldvol to SYS1.VTOCIX.newvol
- Vary device offline
- Deallocate VTOC and Deq
- Wait for device to get offline
- Use ICKDSF to reformat
- Vary device online
- Allocate and Reserve VTOC
- Import connect catalogs if residing on volume
- Change volser in catalog records
- Change volser in F1-Dscb's
- Change volser in F1-Dscb's for cataloged multivol datasets
- Deallocate VTOC and Deq
- Delete SYS1.VVDS.Voldvol from catalogs defined in VVCR of VVDS
- Define SYS1.VVDS.Vnewvol to catalogs defined in VVCR of VVDS

icon_arrow.gif Don't try unless you know what you are doing.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 323
Location: Denmark

PostPosted: Wed Oct 30, 2019 2:27 pm    Post subject:
Reply with quote

I think that you need one important step at the front - full volume backup.
Back to top
View user's profile Send private message
Joerg.Findeisen

New User


Joined: 15 Aug 2015
Posts: 44
Location: Germany

PostPosted: Wed Oct 30, 2019 2:52 pm    Post subject:
Reply with quote

Quote:
I think that you need one important step at the front - full volume backup.

I implied that but it's worth to mention it explicitly. As always have a current backup at hand. icon_wink.gif
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 758
Location: The Universe

PostPosted: Thu Oct 31, 2019 10:25 am    Post subject:
Reply with quote

There are two items in Joerg.Findeisen's long list that I regard as both unnecessary and impossible, in any event, namely

- Change volser in F1-Dscb's
- Change volser in F1-Dscb's for cataloged multivol datasets

I've never known why the volume serial is stored in the F1 DSCB, I've never encountered a use for it, and I know no binary API to change it.
Back to top
View user's profile Send private message
Joerg.Findeisen

New User


Joined: 15 Aug 2015
Posts: 44
Location: Germany

PostPosted: Thu Oct 31, 2019 12:33 pm    Post subject:
Reply with quote

I don't see why changing the Data Set Serial in F1 DSCB should be unnecessary. IDCAMS DCOLLECT will pick exactly this value (along with the Volume Serial) when extracting Data.

If an official API exists to do that is unknown to me. However, as I said, our shops Catalog/DASD/VVDS tool is able to adjust it to the correct values/names after the Clip.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 323
Location: Denmark

PostPosted: Thu Oct 31, 2019 3:05 pm    Post subject:
Reply with quote

Quote:
our shops Catalog/DASD/VVDS tool

which reminds me of a pont I forgot to make. If you embark on such a project I strongly recommend that you invest in a product to help you. I have used Catalog Recovery Plus to do some of the stuff that has been mentioned, nowadays perhaps it can do it all. And I am sure that competing products can do the same.
Back to top
View user's profile Send private message
sergeyken

Active Member


Joined: 29 Apr 2008
Posts: 607
Location: Maryland

PostPosted: Fri Nov 01, 2019 12:44 am    Post subject: Re: Rename dasd
Reply with quote

robyjhl wrote:
Hi, I need to change the name of a disk or dasd volume. Can somebody help me. Example the volume is called abc123 and I want to rename it by cde123. Thank you

It resembles me another question in a public forum:
Quote:
Hi, I need to test validity of some expired nuclear explosives stored in my company for years. Can somebody help me. Example one nuclear bomb is called abc123 and I want to test if it is possible to transport it to new location: is it safe enough, or the unit would explode? Thank you
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Get the list of data sets on DASD and... rakaitn JCL & VSAM 4 Thu Mar 08, 2018 12:38 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Generic rename by pattern‏ Steve Coalbran CLIST & REXX 6 Mon May 30, 2016 9:34 pm
No new posts RMF Command for DASD response time tr... vasanthz All Other Mainframe Topics 2 Thu Nov 26, 2015 4:32 am
No new posts IEHPROGM - HOW TO RENAME A PDS ? WagnerBil IBM Tools 7 Wed Aug 12, 2015 6:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us