IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Rename dasd


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
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
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

Senior Member


Joined: 29 Apr 2008
Posts: 2144
Location: USA

PostPosted: Tue Oct 29, 2019 10:40 pm
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: 917
Location: The Universe

PostPosted: Tue Oct 29, 2019 11:20 pm
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 Member


Joined: 01 Sep 2015
Posts: 734
Location: Denmark

PostPosted: Tue Oct 29, 2019 11:52 pm
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: 917
Location: The Universe

PostPosted: Wed Oct 30, 2019 4:32 am
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

Senior Member


Joined: 15 Aug 2015
Posts: 1337
Location: Bamberg, Germany

PostPosted: Wed Oct 30, 2019 1:25 pm
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 Member


Joined: 01 Sep 2015
Posts: 734
Location: Denmark

PostPosted: Wed Oct 30, 2019 2:27 pm
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

Senior Member


Joined: 15 Aug 2015
Posts: 1337
Location: Bamberg, Germany

PostPosted: Wed Oct 30, 2019 2:52 pm
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: 917
Location: The Universe

PostPosted: Thu Oct 31, 2019 10:25 am
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

Senior Member


Joined: 15 Aug 2015
Posts: 1337
Location: Bamberg, Germany

PostPosted: Thu Oct 31, 2019 12:33 pm
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 Member


Joined: 01 Sep 2015
Posts: 734
Location: Denmark

PostPosted: Thu Oct 31, 2019 3:05 pm
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

Senior Member


Joined: 29 Apr 2008
Posts: 2144
Location: USA

PostPosted: Fri Nov 01, 2019 12:44 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts DASD - non SMS - volser change - VSAM... JCL & VSAM 2
No new posts Get the list of data sets on DASD and... JCL & VSAM 4
No new posts Error during restore rename All Other Mainframe Topics 2
No new posts Generic rename by pattern‏ CLIST & REXX 6
No new posts RMF Command for DASD response time tr... All Other Mainframe Topics 2
Search our Forums:

Back to Top