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


BUILTIN—Process a Built-In Command

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

The BUILTIN macro command is used within an edit macro to process a built-in edit command, even if a macro or macro statement with the same name has been defined.

Syntax

Read syntax diagramSkip visual syntax diagram
Macro command syntax

>>-ISREDIT--BUILTIN--cmdname-----------------------------------><

cmdname
The built-in command to be processed.

Description

If you create a macro named MACEND and enter a DEFINE END ALIAS MACEND command, your MACEND macro runs when you enter END. Within the MACEND macro you can perform logic and use a built-in END command to actually end the edit session.

Note that if END is issued in your MACEND macro without being preceded by BUILTIN, the MACEND macro would run again, resulting in an infinite loop.

Return codes

n
Return code from the built-in command
20
Severe error

Examples

To process the built-in END command:
ISREDIT BUILTIN END
To process the built-in CHANGE command:
ISREDIT BUILTIN CHANGE ALL " " "-"

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014