REPLACING Phrase

When the REPLACING phrase is used:
  • The category of identifier-2 or literal-1 must be compatible with the category indicated in the corresponding REPLACING phrase, according to the rules for MOVE.
    IBM Extension

    IBM Extension A floating-point data item or floating-point literal is treated as if it is in the NUMERIC category. End of IBM Extension

    End of IBM Extension
  • The same category cannot be repeated in a REPLACING phrase.
  • The keyword following the word REPLACING corresponds to a category of data shown in Classes and Categories of Data.
When the REPLACING phrase is not used:
  • IBM Extension
    IBM Extension SPACE is the implied sending field for alphabetic, alphanumeric, and alphanumeric-edited items. End of IBM Extension
    End of IBM Extension
  • SPACE is the implied sending field for DBCS and national items.
  • ZERO is the implied sending field for numeric, and numeric-edited items.