ShawnStanford
Programmer
Wierd one here. Based on everything I can reference, the following code should step backwards through the labelled lines in a member being edited and unlabel them as it goes.
However, when it completes the labels are still visible. If I immediately run the macro again, I get no output as if there are no labels (despite the labels being visible). If I page down and run the macro again, it executes as if the labels are there (which they seem to be).
Any ideas?
However, when it completes the labels are still visible. If I immediately run the macro again, I get no output as if there are no labels (despite the labels being visible). If I page down and run the macro again, it executes as if the labels are there (which they seem to be).
Any ideas?
Code:
/* REXX */
ADDRESS ISREDIT
"ISREDIT MACRO"
DO FOREVER
"ISREDIT CURSOR = .ZL"
"ISREDIT LOCATE PREV LABEL"
IF RC \= 0 THEN LEAVE
"ISREDIT (LINE) = LINENUM .ZCSR"
"ISREDIT (LABNAM, NEST) = LABEL" LINE
"ISREDIT LABEL" LINE "= ' '"
SAY LINE LABNAM
END
"ISREDIT LOCATE 0"
RETURN 1