z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Running program macros

z/OS ISPF Edit and Edit Macros
SC19-3621-00

The ISPF editor assumes that any unknown primary command is a macro, and it also assumes that the macro has been implemented as a CLIST or REXX exec. You can define a macro as a program macro either by entering a DEFINE command or by prefixing the macro name with an exclamation point (!) when you type the macro name on the command line.

If a macro named FINDIT is a CLIST or REXX exec macro, for example, you can run it by typing FINDIT on the command line and pressing Enter. If it is a program macro, you can type !FINDIT, or FINDIT if it had previously been defined as a program macro by the DEFINE command. The first time you enter a macro with an exclamation point (!) prefix implicitly defines that macro as a program macro. Thereafter, you can omit the prefix.

To use the DEFINE command to define a program as a macro, type this command and press Enter:
DEFINE name PGM MACRO
The operands can be typed in either order. That is, DEFINE name MACRO PGM is also valid.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014