Backup and Restore 2 Manual

Using the BRCOM Command Interface
Backup and Restore 2 Manual522696-019
4-3
Including Multiple Commands on the Same Line
Including Multiple Commands on the Same Line
If you terminate each command with a semicolon, you can include multiple commands
on the same line. For example:
BR> INFO JOB jobid; STATUS JOB jobid;
However, you cannot include !, ?, or FC commands on the same line with other
commands. For example:
BR> FC; STATUS JOB jobid;
The !, ?, and FC commands and any subsequent commands on that line result in
syntax errors.
In this example, the DELETE JOB command is executed because it is terminated with
a semicolon. The FC command results in a syntax error.
BR> DELETE JOB jobid; FC
Continuing a Command Line
You can split any command into multiple lines. Either press return at the BRCOM
prompt or continue on the next line of a command file or IN file. Breaking a command
into multiple lines inserts a space character at the point where the line break occurs.
You can split long OSS path names across multiple lines by breaking them into
adjacent quoted strings. The line break is replaced with a space, which is then ignored
when the adjacent strings are concatenated.
Quoted Strings for OSS Path Names
You can specify an OSS path name as a quoted string, such as "/dirname with
spaces". Adjacent quoted strings are automatically concatenated. For example,
"/usr" "/bin", with any white space (such as spaces, tabs, or line breaks) between
the two adjacent quoted strings is equivalent to "/usr/bin".
In this example, a long OSS pathname is split across multiple lines:
BR> BACKUP $TAPE, OSS "/longDirName/longerDirName/"
BR+>"EvenLongerDirName/LongestDirName/filename";
The strings "/longDirName/longerDirName” and
"EvenLongerDirName/LongestDirName/filename" are automatically
concatenated into:
"/longDirName/longerDirName/EvenLongerDirName/LongestDirName/filename"