The PL/MX language

Like most modern programming languages, the PL/MX language includes constructs for variables and constants declarations, statements, conditional compilation, and functions.
Variable and constant declarations

The PL/MX variable and constant declarations provide a means of symbolically associating storage and values with identifiers of up to 30 characters in length. Constants are initialized to a specific value and then remain invariant within their scope.

Statements

The PL/MX statements include assignment statements, control statements, and output statements.

Functions

The PL/MX functions are the means by which UDFs are defined. As with other programming languages, PL/MX functions return values and can be passed parameters of the supported datatypes.

Procedures

PL/MX can be used to create stored procedures. As with other programming languages, PL/MX procedures can pass parameter values of the supported datatypes both in and out of the procedure.