RPG/400 Help
Remember the following rules when using figurative constants:
Note that the results of MOVEA are different from those of the MOVE example
above.
- After figurative constants are set/reset to their appropriate length,
their normal collating sequence can be altered if an alternate collating
sequence is specified.
- The move operations MOVE and MOVEL produce the same result when moving the
figurative constants *ALL'x..' and
*ALLX'x1..'. The character string is cyclically
repeated character by character (starting on the left) until the length of the
associated field is the same as the length of the character string.
- Figurative constants are valid in compare operations such as COMP, CAB,
DOU, DOW, and IF; when the associated field in the compare operations is
the field with which the figurative constant is to be compared.
- Figurative constants are not allowed in factor 1 of a DEBUG or DSPLY
operation or in factor 2 of MHLZO, MLHZO, MHHZO, MLLZO, BITON, BITOF, TESTB,
or SQRT operations.
- The figurative constants, *BLANK/*BLANKS, are moved as zeros to a numeric
field in a MOVE operation.
- *BLANK/*BLANKS do not cause any storage allocation if used in factor
2. Otherwise, storage equivalent to the implied length of blanks is
used. The performance of *BLANK/*BLANKS is equal to using spaces when
the implied length of blanks is less than or equal to 140.
[ Top of Page | Previous Page | Next Page | Table of Contents ]
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.