GUARD Guard Protection for Files

GUARD Guard Protection for files/PLAM library elements (from BS2000 V11.0).

Note: Data objects with Guard protection are flagged with a '$' character before the FCB type.

R Read access is protected with Guard

If N appears instead of R, Guard has not been set for Read access, i.e the data object cannot be read.

W Write access is protected with Guard

If N appears instead of W, Guard has not been set for Write access, i.e the data object cannot be modified.

X Execute access is protected with Guard

If N appears instead of X, Guard has not been set for Execute access, i.e the data object cannot be executed.

Using the Y | N selection parameter, all files can be selected for which Guard protection is or is not set.

The selection parameters [-] R|W|E [=name] can be used to select all files for which a particular access type is or is not protected with any Guard, or with a Guard with the specified name. The pseudo-Guard name 'NONE' can be used to select data objects that are protected by Guard, but which have no Guard attributes defined for that particular access type. No access of the specified kind (R/W/X) is thus possible.

Selection parameter: Y | N | [-]R|W|E [=name]

Examples:

GUARD W

All files or library elements that are write-protected with Guard will be selected.

GUARD R=$TSOS.READGUARD

All files or library elements which are read-protected with a Guard named $TSOS.READGUARD will be selected.

GUARD X=NONE

All files or library elements protected by Guard, and for which no Guard has been defined for execution, will be selected. These selected data objects cannot be executed.