
Concept
Purpose
The DQL Procedural commands are used to organize and control the flow of actions in a procedure.
Usage
Procedural commands can be used in both Processing procedures and Control procedures.
Example
case ( spellweekday ( weekday( current date) )
run procedure "LAST WEEK SUMMARY" .
run procedure "PRINT RESERVATIONS" .
This script tells DataEase: (1) If the current date is a Monday, run the LAST WEEK SUMMARY procedure, (2) if the current date is a Friday, run the PRINT RESERVATIONS procedure, and (3) if the current date is any other day of the week, display the MAIN MENU.