COBOL/400 Language Help
When you use the REPLACING phrase:
- Make the category of identifier-2 or literal-1
compatible with the category indicated in the corresponding REPLACING phrase,
according to the rules for MOVE.
- Do not repeat the same category in a REPLACING phrase.
When you do not use the REPLACING phrase:
- SPACE is the implied sending field for alphabetic, alphanumeric, and
alphanumeric-edited items.
- ZERO is the implied sending field for numeric and numeric-edited
items.
If you specify the REPLACING phrase:
- If identifier-1 references a group item, any elementary item
within the data item referenced by identifier-1 is initialized only
if it belongs to the category specified in the REPLACING phrase.
- If identifier-1 references an elementary item, that item is
initialized only if it belongs to the category specified in the REPLACING
phrase.
This initialization takes place as if the data item referenced by
identifier-2 or literal-1 acts as the sending operand in
an implicit MOVE statement to the identified item.
[ Top of Page | Previous Page | Next Page | Table of Contents ]
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.