Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Using symbolic constants

To have the optimizer recognize a data item as a constant throughout the program, initialize it with a VALUE clause and do not change it anywhere in the program.

If you pass a data item to a subprogram BY REFERENCE, the optimizer treats it as an external data item and assumes that it is changed at every subprogram call.

If you move a literal to a data item, the optimizer recognizes the data item as a constant only in a limited area of the program after the MOVE statement.


Terms of use | Feedback

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