GOTO Examples
Example 1:
|
|
|
|
The program branches to the Program Execution Label READ1 each time this instruction is executed.
Example 2:
|
|
|
|
The program branches to the Program Execution Label READRECD only if the EQUAL or ZERO Condition Flag is set.
Example 3:
|
|
|
|
The program branches to the Program Execution Label READNEXT only if the EQUAL or ZERO Condition Flag is not set (FALSE).
Example 4:
|
|
|
|
|
|
|
|
The program branches to the Program Execution Label ENDOFJOB if the F5 key (Function Flag) was set by its being pressed during the preceding KEYIN.
Example 5:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The file GLMASTER is read in key sequence until the End Of File (EOF) is reached, at which time the OVER Condition Flag is set. Execution then shifts to the Program Execution Label EOJ. While NOT OVER (FALSE), the program COMPAREs GLBALNCE to ZERO. If the value is EQUAL (TRUE), execution shifts to READRCD. If the value is NOT EQUAL (FALSE), the data fields GLACCT and GLBALNCE are written to the printer and the execution unconditionally shifts to READRCD.
![]() |