PROTECT [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
PROTECT
The PROTECT statement assigns a lockword to a file to protect the file
against unauthorized copying, renaming, and purging. A COPYFILE, RENAME,
or PURGE statement cannot access the file unless it specifies the
associated lockword.
Syntax
PROTECT fname [, lock_word]
Parameters
fname The file name. A string expression or literal.
lock_word A string expression representing a valid file system
lockword. If omitted, any existing lockword is removed.
Examples
PROTECT "File1", "Lock1" !Lock1 is assigned as the lockword for File1.
PROTECT "File1/Lock1","Lock2" !Changes the lockword for File1.
MPE/iX 5.0 Documentation