TMF Reference Manual (G06.26+)

Using TMFCOM
HP NonStop TMF Reference Manual522418-003
2-7
Continuing Commands on Multiple Lines
Continuing Commands on Multiple Lines
You can continue a single TMFCOM command over two or more lines. For example,
you must do this when a command contains too many parameters to fit into one 2048-
character line (as sometimes occurs in OBEY command files). In other cases, lengthy
comments on a command line force the text onto one or more additional lines. In still
other cases, you want a command that spans multiple lines on your workstation or
terminal screen, or in a command file, to break neatly.
To continue a command onto another line, enter an ampersand (&) as the last
character in the line you want to continue. When you enter the command interactively,
TMFCOM responds by displaying “>>>” on the next line to prompt you for the rest of
the command. For example, in the first two lines of the following command, the
ampersand indicates that you want to continue the command onto the next line:
TMF 16> ALTER AUDITDUMP AUX01, MEDIUM DISK, ADDDISKMEDIA &
>>>(\REMOTE1.$DATA01.RD, \REMOTE1.$DATA02.RD, &
>>>\REMOTE1.$DATA05.RD)
TMF 17>
By using the ampersand as a continuation character, you can enter multiline
commands that contain up to 28672 characters, excluding ampersands and trailing
blanks.
Continuation takes precedence over comments. Thus, you should not include an
ampersand within a comment in a single-line command, because the ampersand
would not be considered part of the comment and would needlessly force continuation
of the entry onto the next line.
The following command entry contains an ampersand and a comment, used in an
appropriate way:
TMF 21> ADD -- comment -- &
>>>AUDITTRAIL MASTER, AUDITDUMP ON
This entry is equivalent to:
TMF 21> ADD AUDITTRAIL MASTER, AUDITDUMP ON
Entering Multiple Commands on a Line
As shown earlier, TMFCOM also lets you use semicolons to indicate multiple
commands on a single entry line:
TMF 22> STATUS TMF; STATUS TRANSACTION
This entry is equivalent to:
TMF 22> STATUS TMF
TMF 23> STATUS TRANSACTION
TMFCOM executes the commands in the order they are entered.