October 1, 1979 COMMAND MACROS OVERVIEW AND USE
11 COMMAND MACROS _________________
11.1 OVERVIEW AND USE _____________________
A Command Macro is a series of FRESS commands grouped together
by the user to be invoked with a single command name. Command
macros help to reduce the number of keystrokes needed to perform
standard operations or to make a complicated operation easier.
Command Macros are created (see Section 7.2.1) and then grouped
macro libraries together in ________________ (<maclib>s) (see Section 7.2.2).
FRESS should be invoked as follows to make command macro libraries
available for a given session (see Section 2.1):


FRESS [NOS] [<version>] [<maclib>...]


<maclib>...Up to nine <maclib>s may be specified -- duplicate
macro definitions will be resolved in favor of that
residing in the library specified earliest. The system
macro library will be searched last.
Specification _____________
Command Macros are invoked or "called" much as ordinary
commands are. The differences between the two methods are:
A Command Macro name must be preceded by a period (".") or a
comma (",") to indicate it is a macro. If a comma is used,
each expanded command line is printed at the terminal, preceded
by a colon, before execution. This is useful when "debugging"
a new macro (figuring out why it does not work). If a period
is used the expanded lines are not typed.
first command A Command Macro must be the _____________ on a line and must
not be preceded by any blanks.
If a Command Macro is followed by a command separator and an
ordinary FRESS command, the entire expanded macro will be
executed before the ordinary FRESS command is parsed and
executed.
FRESS Resource Manualnual Release 9.1 Section 7.1 -- 247
Previous Page Next Page