The Modern RPG IV Language

Support for expressions in RPG IV extends normal conditional logic, keyword support, and calculations through the use of natural expressions. Natural expressions are used to simplify the programming of these components as well as the implementation of traditional business rules. Expressions can be used with conditional logic statements, assignment statements, or embedded as a parameter of a procedure. An expression matching the data type of a procedure's parameter can be specified as a paramenter for the procedure, provided that the parameter is specified as being CONST or passed by VALUE. Unlike prior versions of RPG, the RETURN operation accepts expressions in the extended factor 2.

EXPRESSIONS in RPG

Expressions are used in the following areas of an RPG program:

Категории