Previous Topic: ExamplesNext Topic: EJECT Command


Editing Bit Fields

You can edit flag fields in the TMC by specifying the field name of an individual bit and then turning the bit on or off. The following fields are set by specifying the field name within the flag field, and then specifying a value of either ON/OFF or YES/NO.

Flag field

Field names

FLAG1

INTERNAL, UPDATED, SCRATCH, DELETED, DEFAULT

FLAG2

OUTPUT, TEMP, CYCLED, OUTDATED

FLAG3

BADMEDIA, MANAGED, ENHANCED

DSSFLAG

PROTECT, READOK, NOWRITE

Note: For specific bit assignments, see the Administration Guide.

Example

To change the status of tape EXAM01 from DELETED to SCRATCH using the noninteractive EDIT command, turn off the DELETED bit by entering:

vmtape edit exam01 replace deleted off

Then turn on the SCRATCH bit by entering:

vmtape edit exam01 replace scratch on