Overview


GRIP Subroutines

GRIP subroutine techniques are supported for programming. A main GRIP program can use several separate GRIP subroutines during program execution. This technique can help you manage extremely large GRIP programs by creating and/or editing smaller segments.

A subroutine, or subprogram, is composed in the same manner as any other GRIP program, except for the beginning and end. The program must begin with the PROC statement and end with the RETURN statement. PROC is used to pass variable information between the subroutine and the main program. RETURN tells GRIP to go back to the program that initiated the subroutine.

The main program calls the subroutine using the CALL statement.