Previous Topic: SyntaxNext Topic: OUTFILE


Parameters

Valid rid values for each supported file format follow:

ESDS

Relative byte address (RBA), expressed in a four-byte hexadecimal format:

X'hh…'

Hexadecimal

KSDS

The record key, expressed as either of the following:

C'c…'

Character—matches specified case

X'hh…'

Hexadecimal

RRDS

Relative record number (RRN)

Sequential

Actual record number, valid values are 1 – 999,999,999

Note: When using a hexadecimal value, you must supply an even number of hexadecimal characters.

Example 1

This example syntax is for a KSDS file. Record processing begins for the data set referenced by the OLDFILE keyword and starts with the record that has the key value X'1000', or if that key does not exist, the next key higher. If keyword OLDFILE is not used, the default value SYSUT1's file is positioned accordingly.

COMPARE,
  OLDRID(X'1000')

Example 2

This example syntax is for RRDS and sequential files. Processing begins with the 32nd record of the data set specified by the OLDFILE keyword, or with the default value of SYSUT1.

COMPARE,
OLDRID(32)