MACRO

MACRO calls a macro.

When you type MACRO from the command line, use the following syntax:
Read syntax diagramSkip visual syntax diagram MACRO fileid

Operands

fileid
specifies the file ID of the macro you want to run. If this file ID includes a file type suffix, then an attempt is made to call an exec with that suffix. Otherwise, an attempt is made to call an exec whose suffix is EXEC.

Return codes

n
The return code that is set by the exit of the called exec. See EXIT.
0
Normal return
-3
Exec not found
-10
Exec name not specified
-11
Invalid exec name
-12
GETMAIN error
-99
Internal error

Example

'MACRO POOL1:\USERS\USER1\TEST'

This example calls the macro, POOL1:\USERS\USER1\TEST.EXEC.

Note: Macros can make calls to the REXX/CICS FLST server. Any command that can be entered from the command line of the FLST can be run from a macro.