Statement DO Foundation
Calls a procedure.
DO <ProcedureName> [WITH <Arguments,...>]
The statement DO...WITH exists only for compatibility and should not be used. Instead, use the following syntax to call a function a procedure:
The optional list of the function arguments is indicated in parentheses.
The DO statement is almost identical to the call of a user-defined function or procedure. One difference is that arguments to a user-defined function or procedure are inside parentheses. Another difference between DO and a function call is that by default DO passes variables by reference, whereas functions pass them by value. Field variables must be indicated in parentheses, unless an alias name plus alias operator is placed in front of them.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.