home about us   contact us
 
   







 


Chicago-Soft
ATTN: TSO Times
One Maple Street
Hanover, NH 03755
(603) 643-4002
information
@tsotimes.com

 

Quick Tip - Renaming VSAM Datasets

by Jim VanSickle

Here's a quick and easy way to rename VSAM datasets and components in ISPF without having to retype all or part of the new name. It's especially useful if you have multiple datasets to rename:

1) Display the datasets you need to rename using option 3.4 or DSLIST.

2) Enter SHOWCMD ON on the command line. This will allow you to modify commands entered on the Dataset List panel before they're executed.

3) Tab down to the line with the dataset you want to rename, type the following and press Enter:

ALTER / NEWNM(/)    

Example:

------------------------------------------------------------------
DSLIST - Data Sets Matching VTSUL.VTCMH
Command ===>

Command - Enter "/" to select action                       Message
------------------------------------------------------------------
alter / newnm(/) CMH.VT1001CT.NEWTICKT.MSTR
         VTSUL.VTCMH.VT1001CT.NEWTICKT.MSTR.DATA
         VTSUL.VTCMH.VT1001CT.NEWTICKT.MSTR.INDEX
------------------------------------------------------------------   
4) When the expanded command is displayed, overtype the new dataset name in the NEWNM parameter field with your changes, and press Enter to execute the ALTER command. Example:
                                  
------------------------------------------------------------------
Data Set Name. : VTSUL.VTCMH.VT1001CT.NEWTICKT.MSTR

Command before expansion:
ALTER / NEWNM(/)

Command after expansion:
===> ALTER 'VTSUL.VTCMH.VT1001CT.NEWTICKT.MSTR' NEWNM('VTSUL.VTCMH.V
T1001CT.NEWICKT.MSTR')
----------------------   

Remember, each component of a VSAM Cluster (DATA, INDEX, etc.) must be renamed individually.

5) Repeat the command for the remaining datasets and/or components using the '=' command.

This handy trick could also be used to perform other similar tasks... just use your imagination!

Jim VanSickle, United Retail Group, Inc., Rochelle Park, NJ




The TSO Times is back by popular demand!
Register now for your FREE subscription









 

Chicago-Soft, LTD
ISPF Tools & Toys
MVS Help Board
Lionel Dyck's Tools
IBM ISPF Page
Tom Brennan's Vista tn3270 Page
Mark Zelden's MVS Utilities


 


 

home · current articles · archives · forums ·
· subscribe · about us · contact us · links