The REP subcommand replaces a string in the new block with another
string. Optionally, this subcommand verifies the original string before
making the replacement. This subcommand is valid only with the
READ UPDATE function.
Syntax of the REP subcommand of READ UPDATE
REP new-string
OFFSET(xxx)
[VER(old-string)]
where:
- new-string
- specifies the new string of data.
The data can be hexadecimal
(which is specified as X'string') or characters
(which can be enclosed in quotation marks or not). Hexadecimal strings
are right-aligned and padded with zeros to a byte boundary. Character
strings are left-aligned and padded with zeros to a byte boundary.
If new-string contains
lowercase characters, new-string must be enclosed
in quotation marks. If new-string is not enclosed
in quotation marks, all characters are treated as uppercase characters,
regardless of the case in which you enter them.
- OFFSET(xxx)
- Specifies the offset into the block where the string is to be
replaced.
- VER(old-string)
- Specifies the original string that is to be verified. If
the string is not found at offset xxx into the
new block, the replacement is not made.
If old-string contains
lowercase characters, old-string must be enclosed
in quotation marks. If you do not enclose old-string in
quotation marks, all characters are treated as uppercase characters,
regardless of the case in which you enter them.
Note: The verify
(VER) operand only verifies the characters specified; it does not
verify the whole string. Be sure to enter the entire string you want
verified.