Patch parameters

The following patch parameters allow you to identify where the patch must be applied.

Name
Specifies the name of the point in XRC that is to be patched. This is a required parameter.
Offset
Specifies the offset from the patch point. This is an optional parameter. If this parameter is omitted, the offset defaults to zero.
OldData
Specifies the currently existing data that is changed by the patch. You can enter up to eight bytes of decimal or character data (for example, OldData(12345678) for decimal or OldData('12345678') for character) and up to four bytes of hexadecimal data (for example, OldData(x'12345678')). The old data is replaced by the new data only if the data in storage matches the old data supplied in this parameter. This is a required parameter.
NewData
Specifies the new data that replaces the old data. The number of bytes of data that can be entered is the same as for OldData. However, the length of the old data and the new data must be the same. This is a required parameter.

Note that the patch command will fail if the data in storage does not match either the old data or new data strings. If the data in storage already matches the new data string, the command will be accepted but no changes will be made to the storage.