COBOL/400 Language Help


CALL Statement

Description
The CALL statement transfers control from one object program to another within the run unit.

The program containing the CALL statement is the calling program; the program identified in the CALL statement is the called subprogram.

Processing of the CALL statement passes control to the first nondeclarative instruction of the called subprogram. Control returns to the calling program at the instruction following the CALL statement.

Called subprograms can contain CALL statements; however, a called subprogram must not itself execute a CALL statement that directly or indirectly calls the calling program.

You can also use the CALL statement to access OS/400 graphics routines:


[ Top of Page | Previous Page | Next Page | Table of Contents ]