op.macro.file Command/Output Processor: Commands

op.macro.file

Command op.macro.file Command/Output Processor: Commands
Applicable release versions: AP
Category Output Processor: Commands (183)
Description defines the file name that contains OP macro items.

Macros may contain multiple OP commands and text.

A macro is an item in the given file.reference with an item-id of the format ".macroid". The item-id of the macro must begin with a period (".").

The "macro file" name cannot consist of any periods (".").

Items from the macro file are included in OP documents by entering the item-id of the macro in the document.

Any string preceded by a period (".") that is not a standard OP command is treated as a macro.

A macro can reside in the file being edited, or in another file.

If a macro file name has not been declared, OP looks for the macro in the current file.

After the macro has been processed, control returns to the original document item.
Syntax .macro file file.reference
.mf file.reference
Options
Example
The item to process resides in the "templates" file, with an item-id 
of ".fax".

u document letter

01 This letter is to inform you of the following information.
02 .macro file templates
03 .fax 
04
05 Sincerely yours,
06
07 Your Name Here

The item to process resides in the "dm" account in the 
"templates" file, with an item-id of ".fax".

u document letter

01 This letter is to inform you of the following information.
02 .macro file dm,templates,
03 .fax 
04
05 Sincerely yours,
06
07 Your Name Here

The item to process resides on the current account and same file 
("document") with an item-id of ".fax".

u document letter

01 This letter is to inform you of the following information.
02
03 .fax 
04
05 Sincerely yours,
06
07 Your Name Here
Purpose
Related op.commands
op.mf
op