Actually, that code won't work :
/* REXX */
isredit macro
isredit change all "?" "("
set cc=&lastcc
write change cc=&lastcc
isredit change all "!" ")"
isredit sort
isredit change all "y" "z"
It looks more like a CLIST. You'd have to change the first "/* REXX */" line for "PROC 0"
In REXX, it would look like :
/* REXX */
isredit macro
isredit change all "?" "("
lastcc = RC
say lastcc
isredit change all "!" ")"
isredit sort
isredit change all "y" "z"
If you want the fancy message form with the yellow message box, you can go this way `
/* REXX */
isredit macro
isredit change all "?" "("
if RC > 0 then
do
ZEDSMSG = "Error prossing the macro"
ZEDLMSG = "There was an error while using this macro."
ISPEXEC "SETMSG MSG(ISRZ001)"
end
isredit change all "!" ")"
isredit sort
isredit change all "y" "z"
ZEDSMSG is for the short message that appears in the window and ZEDLMSG for the long one when you use the command "HELP" (generally mapped on PF1).