Concept
Purpose
A Control procedure is a procedure that lets you link other procedures together with or without conditional processing actions specified by Procedural commands.
A Control procedure can link any number of procedures together and can automatically initiate several actions, including run procedure, backup db (database), install application, etc.
Usage
A Control procedure is used primarily to link Processing procedures together. It can include any combination of Control commands, Processing commands, and Procedural commands.
For a full explanation of any of the DQL commands, see the individual command entry in this lexicon.
Example
if current user name = "PAUL" then
call menu "RECREATIONAL ADMIN" .
run procedure "MAILING LIST" .
This Control procedure tells DataEase: If the current user is Paul, (1) Display the RECREATIONAL ADMIN menu, (2) run the procedure that generates an up-to-date mailing list, and (3) if the current user is not Paul, display the main menu.