Procedure Statement
The procedure statement defines a 4GL procedure. This statement declares the parameters for the procedure and provides the actual processing statements. The syntax for a global 4GL procedure is:
procedure procname [([parameterlist}])] =
[declare
[localvariablelist]
[localprocedureforwardreferences]
enddeclare]]
begin
statementlist
end[;]
{localprocedure[;]}
procname
Specifies the procedure name. You use this name when you call the procedure in the application.
parameterlist
Specifies parameters that are passed to the procedure. You can also use a parameter as a local variable within the procedure. A 4GL procedure can have any number of parameters.
A parameter can be any simple data type acceptable to OpenROAD or any named user class or system class. If a procedure has no parameters, the parentheses are optional.
statementlist
Includes any OpenROAD statement
For a complete description of the procedure statement, see the Language Reference Guide online help.
For more information about local procedures, see
Local Procedures (see
Local Procedures).