VER control statement

This statement compares contents at a specific location in a physical record to data that you supply in the statement.

If the two data fields are not the same, the following REP operations do not occur. A REP does not occur until after the next CNV, KEY, RBA, or NUM control statement.

VER offset data
offset
The hexadecimal displacement of data to be inspected in the VSAM record that is defined by the last CNV, KEY, RBA, or NUM control statement. The displacement does not have to be on any special alignment. It must be specified with an even number of hexadecimal digits (for example, 0D, 021C, 014682).

If the offset value is greater than the record length, the VER operation does not occur.

data
Defines the bytes of data that is expected at the specified location. The number of bytes of data must be specified with an even number of hexadecimal digits (for example, F2C04682).

If all data that is to be verified does not fit on one 80-byte VER statement, use another VER statement.