![]() |
E Erase File/Library Element/JV
E The file/library element/Job variable will be erased.
EA FGG: All file generations after the marked will be erased (ERASE... ,POS=AFTER).
EA PLAM: All delta versions (e.g. entire delta tree) of the library element will be erased.
EB FGG: All file generations before the marked will be erased (ERASE...,POS=BEFORE).
EC The catalog entry of the file will be deleted.
ED The file/library element will be erased. The space occupied by the data object will be overwritten with X'00' (ERASE... ,DESTROY>.
EDA The space occupied by the file will be released. The catalog entry will be retained (ERASE... ,DATA).
EDAR As for the EDA Action code, except that the file attributes Fcbtype, Recform, Recsize, Blksize etc. will not be reset.
EN The file/Job variable/library element is erased, and the ERT option (see notes) is explicitly switched off for the erase operation.
ET The file/Job variable/library element is erased, and the ERT option is explicitly switched on.
EI When erasing, the file attributes ACCESS=READ and RETPD>0, as well as the Basic Access Control List are ignored (ERASE... ,IGNORE=(ACCESS,EXDATE) ).
Notes:
When erasing file generations using the Action Code E, the user is asked for the POS operand.
A: POS=AFTER all File generations after the current one is erased.
B: POS=BEFORE all File generations before the current one is erased.
N: POS= no File generations will be erased.
When erasing data objects, the ERT mode of CFS (normally set on) should be noted.
The ERT Mode (Erase with Retain Tempfiles) causes files/Job variables/library elements erased with the Action Code E first to be recataloged to a temporary file. At the end of the procedure, these temporary files are erased by BS2000. From the users point of view, theses files are still physically available as files, and can be retrieved by entering FSTAT # or STAJV # in the FILENAME-SELECT field.
The names of the temporary files are created by prefixing the file to be erased with a # symbol during the CAT command.
Library elements are copied to a temporary library before the erasure, and remain accessible until the end of the procedure. The name of the temporary library is created by prefixing the library from which the element is to be erased with a # symbol.
The ERT option does not take effect if
- Files are erased with the Action Code ED (Erase ...,Destroy), EC (Erase ..., Catalog) or EN (Erase with No retain of tempfiles),
- Files are erased from private discs which have used more than 5000 pages,
- Files from another userid are erased under TSOS,
- PLAM library elements are erased with the Action Code EA (Erase All delta versions).
The ERT option may be switched off by means of the NERT (No Erase Retain Temporary) command, or via the SET mask.
If the ERT mode has been deactivated, individual files may still be erased with the Temp file option by issuing the ET Action Code (Erase with Temp files) instead of E.
Erased files are automatically removed from the current file list (implicit '-' Action Code). The YANK command can be used to make them visible again.
For PLAM elements stored in the delta form, the Action Code E will erase the displayed version. No other version is erased. After the deletion, the element will appear in the file list with the next lowest version number.
To erase all versions of the element, use the EA (Erase All) Action Code.