When table space is created using DB2 Storage Group with VCAT name 'vvvv', DB2 will dynamically create the corresponding VSAM Linear datasets with the following naming convention:
vvvv.DSNDBx.dbname.tsname.I00001.A00n etc..
In our shop, vvvv corresponds to the team name that is using the table space. Sometimes, the name of the team will change due to organization change or whatever reasons, so there is a need to convert these dataset name to the new team name, say 'yyyy'. Apart from this high level qualifier (HLQ) change, there is nothing to be altered including the contents in the table space.
We understood that the formal way is to unload all the tables concerned, drop the table space and recreating them after the altering the storage group to use the new VCAT name. The last step of course is to reload them. But with hundreds of these table spaces need to be changed, this becomes extremely tedious and error prone.
We would like to share your experience if there is any simplier way to accomplish the task, given that only the dataset name need to be changed and of course the VCAT name of the storage group. Any idea is mostly welcome.
Thank you very much.
Please reply to sed...@hk.super.net
Regards,
Daniel.
I've used this successfully when converting from user-defined datasets
to STOGROUPs, and it works very quickly. The slowest part of the
process is the actual IDCAMS alters.
Good luck to you.
Regards,
Fritz
Would re-orging the tables after you do the Stogroup alter do it?
David Leigh
UNIPAC Service Corporation
3015 South Parker Road
Suite 400
Aurora, CO 80014
(303) 696-5645
(303) 696-5669 fax
dle...@unipac.com
0- Perform imagecopy.
1- Create the new stogroup with Vcat 'yyyy'.
2- Stop DB.
3- Alter tablespace using stogroup new.
4- Run Pgm Idcams with option 'Alter vvvv.dsndbc/d..... newname
(yyyy.dsndbc/d.....)'
5- Start DB.
That's all...
From: owner...@AMERICAN.EDU AT INTERNET on 09/24/98 07:07 PM
To: BRIAN KHONG/EMPL/VA/Bell-Atl, DAN BROGDON/VEND/VA/Bell-Atl,
DEBAPRATIM MUKHERJEE/EMPL/VA/Bell-Atl, TRUMAN G.
BROWN/EMPL/MD/Bell-Atl, DB...@AMERICAN.EDU AT INTERNET@CCDOMAIN
cc:
Subject: VCAT name change for DB2 table space VSAM Linear Datasets
Hope this helps,
wayne
Wayne Reese
Paragon Computer Professionals
at AT&T - 30 Knightsbridge Road
Piscataway, NJ
(732) 457-4727 cube 52d44
email: wre...@att.com
> -----Original Message-----
> From: Leigh, David [SMTP:dle...@HQMAIL.UNIPAC.COM]
> Sent: Thursday, September 24, 1998 3:55 PM
> To: DB...@AMERICAN.EDU
> Subject: FW: VCAT name change for DB2 table space VSAM Linear
> Datasets
>
> Would re-orging the tables after you do the Stogroup alter do it?
>
> David Leigh
> UNIPAC Service Corporation
> 3015 South Parker Road
> Suite 400
> Aurora, CO 80014
> (303) 696-5645
> (303) 696-5669 fax
> dle...@unipac.com
>
>
> -----Original Message-----
> From: DBA Team [ <mailto:sed...@HK.SUPER.NET>]
> Sent: Thursday, September 24, 1998 4:33 AM
> To: DB...@AMERICAN.EDU
Regards,
Michael Levine
Premier Data Services, Inc.
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
><HTML>
><HEAD>
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
><META NAME="Generator" CONTENT="MS Exchange Server version 5.0.1461.43">
><TITLE>RE: VCAT name change for DB2 table space VSAM Linear Datasets</TITLE>
></HEAD>
><BODY>
>
><P><FONT SIZE=2>Would re-orging the tables after you do the Stogroup alter
do it?</FONT>
></P>
>
><P><FONT SIZE=2>David Leigh</FONT>
><BR><FONT SIZE=2>UNIPAC Service Corporation</FONT>
><BR><FONT SIZE=2>3015 South Parker Road</FONT>
><BR><FONT SIZE=2>Suite 400</FONT>
><BR><FONT SIZE=2>Aurora, CO 80014</FONT>
><BR><FONT SIZE=2>(303) 696-5645</FONT>
><BR><FONT SIZE=2>(303) 696-5669 fax</FONT>
><BR><FONT SIZE=2>dle...@unipac.com</FONT>
></P>
><BR>
>
><P><FONT SIZE=2>-----Original Message-----</FONT>
><BR><FONT SIZE=2>From: DBA Team [<A HREF="mailto:sed...@HK.SUPER.NET"
TARGET="_blank">mailto:sed...@HK.SUPER.NET</A>]</FONT>
><BR><FONT SIZE=2>Sent: Thursday, September 24, 1998 4:33 AM</FONT>
><BR><FONT SIZE=2>To: DB...@AMERICAN.EDU</FONT>
><BR><FONT SIZE=2>Subject: VCAT name change for DB2 table space VSAM Linear
Datasets</FONT>
></P>
><BR>
>
><P><FONT SIZE=2>Dear all,</FONT>
></P>
>
><P><FONT SIZE=2>When table space is created using DB2 Storage Group with
VCAT name 'vvvv', DB2 will dynamically create the corresponding VSAM Linear
datasets with the following naming convention:</FONT></P>
>
><P><FONT SIZE=2>vvvv.DSNDBx.dbname.tsname.I00001.A00n etc..</FONT>
></P>
>
><P><FONT SIZE=2>In our shop, vvvv corresponds to the team name that is
using the table space. Sometimes, the name of the team will change due to
organization change or whatever reasons, so there is a need to convert these
dataset name to the new team name, say 'yyyy'. Apart from this high
level qualifier (HLQ) change, there is nothing to be altered including the
contents in the table space. </FONT></P>
>
><P><FONT SIZE=2>We understood that the formal way is to unload all the
tables concerned, drop the table space and recreating them after the
altering the storage group to use the new VCAT name. The last step of course
is to reload them. But with hundreds of these table spaces need to be
changed, this becomes extremely tedious and error prone. </FONT></P>
>
><P><FONT SIZE=2>We would like to share your experience if there is any
simplier way to accomplish the task, given that only the dataset name need
to be changed and of course the VCAT name of the storage group. Any idea is
mostly welcome.</FONT></P>
>
><P><FONT SIZE=2>Thank you very much.</FONT>
></P>
>
><P><FONT SIZE=2>Please reply to sed...@hk.super.net</FONT>
><BR><FONT SIZE=2>Regards,</FONT>
><BR><FONT SIZE=2>Daniel.</FONT>
></P>
>
></BODY>
></HTML>
Kathy Zeidenstein
DB2 Information Development