MACRO
Purpose
Use the MACRO subcommand to cause the specified operand to be executed as a macro.
Operands
- macro
- is an XEDIT macro name and its arguments (if any).
The first word in the macro is assumed to be an XEDIT macro name. It starts with the first nonblank character after the subcommand name MACRO and ends with the first character followed by a blank. The name can be 1 - 8 characters; it is truncated to eight characters, if necessary.
Usage Notes
- The MACRO subcommand causes the editor to execute the specified macro without first checking to see if a subcommand of the same name or a synonym exists.
- The MACRO subcommand must be used when the macro name contains nonalphabetic characters. It does not follow the usual parsing rule of separating alphabetic characters from immediately following nonalphabetic characters. For example, N2 usually means NEXT 2. MACRO N2 means execute the macro named N2.
- The macro may not reside in the byte file system (BFS).
Examples
The following examples shows how a macro with an argument can be invoked.
Example 1: This example invokes the macro file N XEDIT with the argument ABC.
macro N ABC
Example 2: This example invokes the macro file N2 XEDIT with the argument ABC.
macro N2 ABC
Responses
The response, if any, from the executed macro is displayed.
Messages and Return Codes
- 542E
- No such subcommand: name [RC=-1]
where return codes are:
- –1
- No such subcommand
- nn
- Return code of the macro specified as operand
- 0
- Normal
- 6
- Subcommand rejected in the profile due to LOAD error, or QUIT subcommand has been issued in a macro called from the last file in the ring
