someone can tell me why, this is source code:
/*-REXX*************************/
'ISREDIT MACRO (NESTMAC) PROCESS'
'ISREDIT (DATA1) = DATAID'
'ISREDIT (CURMEM) = MEMBER'
SAY "CURRENT MEMBER IS CURMEM-----" CURMEM
SAY "CURRENT MEMBER IS MEMBER-----" MEMBER
SAY "CURRENT LIBRARY IS DATA1-----" DATA1
SAY "CURRENT LIBRARY IS DATAID----" DATAID
ADDRESS ISPEXEC 'LMOPEN DATAID('DATA1') OPTION(INPUT)'
SAY "OPEN SUCCESSFUL!"
MEMBER = ' '
MEMBER1=' www1'
MEMBER2='2'
LMRC = 0
STRCMP = 0
SAY "GO INTO LOOP!!!"
DO WHILE LMRC=0
ADDRESS ISPEXEC 'LMMLIST DATAID('DATA1') OPTION(LIST),
MEMBER(MEMBER) STATS(NO)'
LMRC = RC
SAY "LMRC=" LMRC
SAY ZERRLM
IF LMRC = 0 & MEMBER ¬= CURMEM THEN
DO
IF COMPARE(SUBSTR(MEMBER,2,1),MEMBER2) = STRCMP THEN
DO
SAY 'PROCESSING MEMBER: ' MEMBER
PAUSE
ADDRESS ISPEXEC 'EDIT DATAID('DATA1') MEMBER('MEMBER')
MACRO('NESTMAC')'
END
END
'ISREDIT MACRO (NESTMAC) PROCESS'
'ISREDIT (DATA1) = DATAID'
'ISREDIT (CURMEM) = MEMBER'
SAY "CURRENT MEMBER IS CURMEM-----" CURMEM
SAY "CURRENT MEMBER IS MEMBER-----" MEMBER
SAY "CURRENT LIBRARY IS DATA1-----" DATA1
SAY "CURRENT LIBRARY IS DATAID----" DATAID
ADDRESS ISPEXEC 'LMOPEN DATAID('DATA1') OPTION(INPUT)'
SAY "OPEN SUCCESSFUL!"
MEMBER = ' '
MEMBER1=' www1'
MEMBER2='2'
LMRC = 0
STRCMP = 0
SAY "GO INTO LOOP!!!"
DO WHILE LMRC=0
ADDRESS ISPEXEC 'LMMLIST DATAID('DATA1') OPTION(LIST),
MEMBER(MEMBER) STATS(NO)'
LMRC = RC
SAY "LMRC=" LMRC
SAY ZERRLM
IF LMRC = 0 & MEMBER ¬= CURMEM THEN
DO
IF COMPARE(SUBSTR(MEMBER,2,1),MEMBER2) = STRCMP THEN
DO
SAY 'PROCESSING MEMBER: ' MEMBER
PAUSE
ADDRESS ISPEXEC 'EDIT DATAID('DATA1') MEMBER('MEMBER')
MACRO('NESTMAC')'
END
END
this is output when I run in current library
CURRENT MEMBER IS CURMEM----- CURMEM
CURRENT MEMBER IS MEMBER----- MEMBER
CURRENT LIBRARY IS DATA1----- DATA1
CURRENT LIBRARY IS DATAID---- DATAID
OPEN SUCCESSFUL!
GO INTO LOOP!!!
LMRC= 10
Data ID 'DATA1' not found.
***
CURRENT MEMBER IS MEMBER----- MEMBER
CURRENT LIBRARY IS DATA1----- DATA1
CURRENT LIBRARY IS DATAID---- DATAID
OPEN SUCCESSFUL!
GO INTO LOOP!!!
LMRC= 10
Data ID 'DATA1' not found.
***