ALTER
Related topic
The ALTER command alters the expiration date of backup, archive, and Cloud Data Set (CDS) data sets.
Logic
The ALTER command accepts one resource at a time. You must specify one of the following types of data sets:
- CDS
- BACKUP
- ARCHIVE
- VOLUME
You must have ALTER access to the data set being altered.
Syntax
M9CLI ALTER <dataSetName> TYPE(<CDS|BACKUP|ARCHIVE>)
UNIQUEID(<uniqueID>)
DATE(yyyy/mm/dd)
[PURGE]
UNIQUEID(<uniqueID>)
DATE(yyyy/mm/dd)
[PURGE]
Required parameters
| Parameter | Description | Format |
|---|---|---|
| dataSetName | A specific data set name, which can be enclosed in apostrophes
| Full name |
| TYPE | Type of data set | Valid values are:
|
| UNIQueid | An 8-byte ID that, when combined with the data set name, identifies each backup copy | First 8 characters |
| DATE | Specifies a future date on which to expire the selected data set. You cannot specify a date that has already passed. | yyyy/mm/dd |
Optional parameters
| Parameter | Description |
|---|---|
| PURGE | Deletes the data set, although it has not yet expired You must have READ access to the following BMC AMI Cloud resources:
|
Output
The output displays the given ALTER command and parameters, followed by the requested information:
ALTER QA.SMS.SG1QNOBK.CLI.ALTER.NOEXPIRE.BKP TYPE(<dataSetType>) UNIQUEID(<uniqueID>) DATE(<yyyy/mm/dd>)
Model9 CLI SYSNAME: M9U1 DATE: 2025/03/18 VERSION: 4.1.0
ZM9I088I Data set QA.SMS.SG1QNOBK.CLI.ALTER.NOEXPIRE.BKP was altered successfully
Model9 CLI SYSNAME: M9U1 DATE: 2025/03/18 VERSION: 4.1.0
ZM9I088I Data set QA.SMS.SG1QNOBK.CLI.ALTER.NOEXPIRE.BKP was altered successfully
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*