User`s guide
PROTECT
halts after the command is processed. When you use /INFORMATION, RT–
11 displays an informational message to tell you which files it cannot find, but
execution continues.
In the following example, the input files FILE1.TXT and FILE3.TXT are
protected. However, since RT–11 is unable to find DL0:FILE2.TXT, RT–11
displays a message to inform you:
.PROTECT/INFORMATION DL0:(FILE1,FILE2,FILE3).TXT
?PIP-I-File not found DL0:FILE2.TXT
/[NO]LOG
/LOG lists on the terminal a log of the files protected by the current command.
This is the default mode of operation when you use wildcards in the file
specification. Note that if you specify /LOG, RT–11 does not ask you for
confirmation before execution proceeds. Use both /LOG and /QUERY to invoke
logging and querying.
/NOLOG prevents a list of files being protected from printing on the terminal.
/NEWFILES
Protects only the files that have the current system date. The following example
protects the files created today:
.PROTECT/NEWFILES DU1:*.BAK
Files protected:
DU1:MERGE.BAK
/QUERY
Requests confirmation from the system before it protects each file. This option
is particularly useful on operations that involve wildcards, when you may not be
completely sure which files the system will select for the operation. Note that
specifying /LOG eliminates the automatic query; you must specify /QUERY with
/LOG to retain the query function. Respond to a query message by typing Y (or
any response beginning with Y)
RETURN
to initiate execution of an operation. RT–
11 interprets any other response to mean NO; it does not perform the specified
operation.
The following example shows querying. Only the file DU1:AAF.MAC is protected:
.PROTECT/QUERY DU1:*.*
Files protected:
DU1:ABC.MAC ? N
DU1:AAF.MAC ? Y
DU1:MERGE.FOR ? N
/SETDATE[:date]
Causes RT–11 to put the date you specify on all files it protects. If you specify
no date, the current system date is used. If the current system date is not set,
the system places zeros in the directory entry date position. Normally, RT–11
preserves the existing file creation date when it protects a file.
196 RT–11 Command Descriptions










