DO (call a ROUTINE)

Top  Previous  Next

 

DO label

DO

Executes a ROUTINE.

label

The label of a ROUTINE statement.

The DO statement is used to execute a ROUTINE local to a PROGRAM or PROCEDURE. When a ROUTINE completes execution, program control reverts to the statement following the DO statement. A ROUTINE may only be called within the CODE section containing the ROUTINE's source code.

Example:

DO NextRecord    !Call the next record routine

DO CalcNetPay    !Call the calc net pay routine

 

See Also:

EXIT

ROUTINE