I have a input file with the following format
Name Age Action type
a 23 Add
b 24 delete
c 24 delete
Where name is the key..I need to read this file (f1) and do action on another file(f2) depending of reading action action type
I am coding as below.
READ F2 KEY IS in-name
IF IN-ACTION-TYPE='ADD'
INVALID KEY PERFORM Para1
NOT INVALID KEY PERFORM para 2
ELSE IF IN-ACTION-TYPE='DELETE'
INVALID KEY PERFORM para 3
NOT INVALID KEY PERFORM para 4
END-IF
END-READ.
While compiling the code I am getting the error
EXPECTED A VERB OR "NEXT SENTENCE", BUT FOUND "INVALID"
Can anyone please suggest me how to correct this..