Operation Codes
An operation code, or command in Encore RPGs is a complete instruction that can contain parameters, operators, variables, constants, and expressions. All op codes fall into one of two categories: declaration commands , which name a variable, constant, or procedure and can also specify a data type; or executable commands , which initiate actions.
In This Section
Provides a high-level look at operation codes, including how to have multiple commands on one line, continue a command over multiple lines, add comments, and check compilation errors.
Describes operation codes that carry out assignment operations, which assign the value on the right side of the operator to the variable on the left side.
Describes operation codes, or commands that name and define procedures, variables, arrays, and constants.
Describes operation codes, or commands that initiate action by executing a method. Executable statements can loop or branch through blocks of code, and often contain mathematical or conditional operators.
Related Sections
Provides links to Language Reference topics covering assignment operators such
as =
, *=
, and &=
.
Shows how to combine elements with operators to yield new values.
Describes the code units that manipulate value-returning elements, and how to use them efficiently.