What Can You Include in a Procedure?
You can include the following
items in a Maintain procedure:
-
Maintain language commands. All
Maintain commands must be located within a Maintain function, except
for the MAINTAIN, MODULE, DESCRIBE, CASE, and END commands, as well
as global DECLARE commands, all of which must be located outside
of a function. In the Procedure Editor, commands are displayed in blue
by default. For more information, see Command Reference.
-
Comments.
In the Procedure Editor, comments are displayed
in green by default. For more information, see Adding Comments.
-
Blank lines. Add
blank lines to separate functions and other logic so that the procedure
is easier to read.
If a Maintain procedure is a starting procedure (sometimes known
as a root procedure), and it is not called by any other Maintain
procedures, it can also contain Dialogue Manager commands preceding
the MAINTAIN command. Dialogue Manager commands are described in
the Developing Reporting Applications manual.