Safeguard User's Guide (G06.24+, H06.03+)

Working With SAFECOM
Safeguard User’s Guide422089-009
7-5
Redirecting Output for a Single Command
Redirecting Output for a Single Command
Usually, with SAFECOM operating in interactive mode, output is displayed on the
home terminal because the home terminal is the default OUT file. However, SAFECOM
can be directed to report to an EDIT file or to list a SAFECOM report on a printer. To do
this, include an OUT option to redirect SAFECOM output for a single command.
Specify the OUT option immediately following the command and enclose it in slashes
as follows.
For example, this command redirects the output of the SAFECOM HELP command to
a spooler location:
=HELP / OUT $s.#lp1 / ALL
This command prints all the SAFECOM help screens on the printer defined for the
spooler location $S.#LP1.
To save a SAFECOM report in an EDIT file, enter a disk-file name. If the file already
exists, SAFECOM opens the file and appends the INFO report to the file. If the file
does not exist, SAFECOM creates an EDIT file with the specified name and then writes
the output report to that file.
The next example writes an INFO report for all the files on the subvolume named
report3 to the file named $data.report3.myfiles. First, establish a default disk volume
and subvolume:
=VOLUME $data.report3
Then request the report:
=INFO / OUT myfiles / DISKFILE *,DETAIL
Using the OUT option with a SAFECOM command redirects output for only that
command. After the command completes, SAFECOM again directs its output to the
session OUT file, which is your terminal. To keep a complete record of a SAFECOM
session, use the LOG command. The LOG command sends a copy of the session
input and output to a log file but does not change the current IN and OUT files.
Getting Online Help
In interactive mode, you can use the SAFECOM help facility to find the answer to
syntax questions. The help facility supports all SAFECOM commands, including those
reserved for your security administrator.