10.14.4 Call a Procedure (DO)

Syntax

DO procname ;

Procname must be the name of a PROCEDURE defined somewhere in the report program.

Purpose

Procedure calls are used to execute a statement that has been set apart and given a special name (see the PROCEDURE description). Upon completion of the called statement, control returns to the statement following the DO statement.

Recursive and nested calls are allowed.

Examples:

DO headings;

DO a_detail;