200-PROCESS-RECORD-RTN.
MOVE WS-FIRST-NAME TO TR-FIRST-NAME
READ BLACKLST
INVALID KEY
PERFORM 215-READ-MFAIVRP-RTN
NOT INVALID KEY
PERFORM 205-WRITE-RECORD-RTN
END-READ.
215-READ-MFAIVRP-RTN.
READ MFAIVRP
AT END
MOVE 'NO' TO ARE-THERE-MORE-IVRP
END-READ.
MOVE FIRST-NAME OF MFAIVRP TO WS-FIRST-NAME.
MOVE INITIALS OF MFAIVRP TO WS-MIDDLE-NAME.
MOVE LAST-NAME OF MFAIVRP TO WS-LAST-NAME.
MOVE LEGAL-NAME OF MFAIVRP TO WS-LEGAL-NAME.
MOVE SOCIAL-INSURANCE-NO OF MFAIVRP TO WS-SOI-NUMBER.
MOVE COUNTRY-CODE OF MFAIVRP TO WS-CNTRY-CODE.
The above program looks for the first name and if this is found in BLACLST the 205-write-record-rtn is performed. This works fine.
But before performing 205 I would also like to test for LAST-NAME in file MFAIVRP with the TR-LAST-NAME in file BLACLST.
I am encountering errors with all my attempts.
Hope someone can help me.
Thanks
Tony
MOVE WS-FIRST-NAME TO TR-FIRST-NAME
READ BLACKLST
INVALID KEY
PERFORM 215-READ-MFAIVRP-RTN
NOT INVALID KEY
PERFORM 205-WRITE-RECORD-RTN
END-READ.
215-READ-MFAIVRP-RTN.
READ MFAIVRP
AT END
MOVE 'NO' TO ARE-THERE-MORE-IVRP
END-READ.
MOVE FIRST-NAME OF MFAIVRP TO WS-FIRST-NAME.
MOVE INITIALS OF MFAIVRP TO WS-MIDDLE-NAME.
MOVE LAST-NAME OF MFAIVRP TO WS-LAST-NAME.
MOVE LEGAL-NAME OF MFAIVRP TO WS-LEGAL-NAME.
MOVE SOCIAL-INSURANCE-NO OF MFAIVRP TO WS-SOI-NUMBER.
MOVE COUNTRY-CODE OF MFAIVRP TO WS-CNTRY-CODE.
The above program looks for the first name and if this is found in BLACLST the 205-write-record-rtn is performed. This works fine.
But before performing 205 I would also like to test for LAST-NAME in file MFAIVRP with the TR-LAST-NAME in file BLACLST.
I am encountering errors with all my attempts.
Hope someone can help me.
Thanks
Tony