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


Example

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

In the example that follows, the NOPROCESS operand on the MACRO command defers processing of the panel data until the line with the cursor is assigned to a variable. After the PROCESS command, the line contains any changes that you made.

CLIST Statements REXX Statements
 
ISREDIT MACRO NOPROCESS
ISREDIT (BEFORE) = LINE .ZCSR
ISREDIT PROCESS
ISREDIT (AFTER) = LINE .ZCSR
IF &STR(&BEFORE) = &STR(&AFTER) THEN -
     ...
ELSE -
     ...
ADDRESS ISPEXEC
'ISREDIT MACRO NOPROCESS'
'ISREDIT (BEFORE) = LINE .ZCSR'
'ISREDIT PROCESS'
'ISREDIT (AFTER) = LINE .ZCSR'
IF BEFORE = AFTER THEN
     ...
ELSE
     ...

See PROCESS—Process Line Commands.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014