Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

Assignment and compound assignment statements

Assignment statement
Compound assignment statement
Target variables
How assignments are performed
Multiple assignments
Example of moving internal data
Example of assigning expression values
Example of assigning a structure using BY NAME

The assignment statement evaluates an expression and assigns its value to one or more target variables.

These statements are used for internal data movement, as well as for specifying computations. (The GET and PUT statements with the STRING option can also be used for internal data movement. Additionally, the PUT statement can specify computations to be done. See Stream-oriented data transmission.)

Because the attributes of the target variable or pseudovariable can differ from the attributes of the source (a variable, a constant, or the result of an expression), the assignment statement might require conversions (see Data conversion).


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)