DELETE SCRIPT (Delete command lines from a script or delete the entire script)
Use this command to delete a single line from a Tivoli® Storage Manager script or to delete the entire Tivoli Storage Manager script.
Privilege class
To issue this command, the administrator must have previously defined the script or must have system privilege.
Parameters
- script_name (Required)
- Specifies the name of the script to delete. The script is deleted unless you specify a line number.
- Line
- Specifies the line number to delete from the script. If you do not specify a line number, the entire script is deleted.
Example: Delete a specific line from a script
Using the following script named QSAMPLE and issue a command to delete line 005 from it.001 /* This is a sample script */
005 QUERY STATUS
010 QUERY PROCESS
delete script qsample line=5
Related commands
| Command | Description |
|---|---|
| COPY SCRIPT | Creates a copy of a script. |
| DEFINE SCRIPT | Defines a script to the Tivoli Storage Manager server. |
| QUERY SCRIPT | Displays information about scripts. |
| RENAME SCRIPT | Renames a script to a new name. |
| RUN | Runs a script. |
| UPDATE SCRIPT | Changes or adds lines to a script. |
