Default language.

Delete/Define


The Delete/Define function (option DR) deletes and enables you to reallocate the VSAM cluster and all its related objects. To delete and redefine a data set, enter a DR in the OPTION field and specify a cluster dataset name on the VSAM Utility screen. When you press Enter, File-AID displays the VSAM Confirm Dataset Delete screen shown in Delete-dataset. The VSAM Confirm Dataset Delete screen shows the names of all objects related to the data set to be deleted.

When you press Enter again, File-AID displays the Confirm Dataset Define screen, as shown in the following figure. All clusters related to the entered data set are displayed. The following 2 fields can be modified, if available.

For KSDS and RRDS data sets, you can specify:

  • Enter Initialize Dataset ===> Y (YES) to initialize the data set immediately after reallocation.
  • Enter Initialize Dataset ===> N (NO) to reallocate the data set without initialization.

For single volume data sets, you can modify the Volume field to allow reallocation to a new device.

Confirm Dataset Define screen

File-AID ----------------  Confirm Dataset Define  ----------------------------
 COMMAND ===>
 The VSAM dataset and all related objects have been deleted
 Dataset name:  USERID9.FASAMP.NEWONE  
 Initialize Dataset: ===> NO        (Y = Yes; N = No)
 The following objects will be re-allocated                            Key
                                                                       Offset/
   Object Type                     Object Name                  Volume Length
 --------------- ---------------------------------------------- ------ -------
 KSDS Cluster    USERID9.FASAMP.NEWONE                                 0  5
   Data          USERID9.FASAMP.NEWONE.DATA                     PRD928
   Index         USERID9.FASAMP.NEWONE.INDEX                    PRD928
Objects related to the above cluster follow








Use ENTER to confirm define, END to cancel define


For online processing, the message CLUSTER DELETED/DEFINED is displayed on the VSAM Utility screen when processing is complete. If you have specified Initialize Dataset, the message DS DELETED/DEFINED/INIT is displayed.

For batch and IDCAMS processing, JCL is generated to delete the specified data set and all its related objects. For KSDS and RRDS data sets, the Initialize dataset screen appear before the JCL generation screen.

The Delete/Define function is limited to KSDS, ESDS, RRDS, and LINEAR (LDS) data sets and alternate indices and paths.

Error
Warning

When you delete a specified data set using the Delete/Define function, all data is lost. Even if you redefine the same dataset, the original data is not restored.

Related topics

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI DevX File-AID/MVS 23.01