I am working on a program called lookup and I have one error i cannot solve.
Here is the paragraph...
001101 450-LOOKUP.
001102 MOVE 1 TO HOLD-SUB
001103 PERFORM
001104 UNTIL HOLD-SUB > 8 OR LOOKUP-FLAG = 'YES'
001105 IF DIV-MANAGER(HOLD-SUB) = HOLD-DIV
001106 MOVE HOLD-DIV TO HEAD-CENTER
001107 MOVE DIV-NAME(HOLD-SUB) TO HEAD-NAME
001108 MOVE 9 TO HOLD-SUB
001109 END-IF
001110 END-PERFORM.
001102 MOVE 1 TO HOLD-SUB
001103 PERFORM
001104 UNTIL HOLD-SUB > 8 OR LOOKUP-FLAG = 'YES'
001105 IF DIV-MANAGER(HOLD-SUB) = HOLD-DIV
001106 MOVE HOLD-DIV TO HEAD-CENTER
001107 MOVE DIV-NAME(HOLD-SUB) TO HEAD-NAME
001108 MOVE 9 TO HOLD-SUB
001109 END-IF
001110 END-PERFORM.
This is the error
001101 450-LOOKUP.
000247 001102 MOVE 1 TO HOLD-SUB
000248 001103 PERFORM
000249 001104 UNTIL HOLD-SUB > 8 OR LOOKUP-FLAG = 'YES'
000250 1 001105 IF DIV-TABLE(HOLD-SUB) = HOLD-DIV
000247 001102 MOVE 1 TO HOLD-SUB
000248 001103 PERFORM
000249 001104 UNTIL HOLD-SUB > 8 OR LOOKUP-FLAG = 'YES'
000250 1 001105 IF DIV-TABLE(HOLD-SUB) = HOLD-DIV
==000250==> IGYPS2120-S Expected a reference-modification specification but found ')' the IF
statement was discarded.
000251 2 001106 MOVE HOLD-DIV TO HEAD-CENTER
000252 2 001107 MOVE DIV-NAME(HOLD-SUB) TO HEAD-NAME
000253 2 001108 MOVE 9 TO HOLD-SUB
000254 1 001109 END-IF
000255 001110 END-PERFORM.
000252 2 001107 MOVE DIV-NAME(HOLD-SUB) TO HEAD-NAME
000253 2 001108 MOVE 9 TO HOLD-SUB
000254 1 001109 END-IF
000255 001110 END-PERFORM.
Somebody tell me what am I doing wrong.
PS: Sorry how do you get the the print screen function to work?