Previous Topic: SyntaxNext Topic: Keywords


Parameters

SELRECIF supports the following parameters:

field-name

Use field-name when referencing a data field that is defined in the record's layout. The layout must be available to the job step. For more information on how to make the record's layout available, see the keyword LAYOUTFILE.

Note: When this parameter is supplied, the keyword's position, length, decimal-positions, and data type (when supplied), are all retrieved from the field-name definition, and are used to validate the data's format.

position

Specifies the starting field positioning the record. Valid values are as follows:

1 - 32760

The actual position number

+nnn or –nnn

The relative position to the record's current location

scan-length

The amount of data to scan. If 0, scanning starts at the position parameter value to the record length. Valid values are 0 - 32760. If the scan-length is omitted, no scanning is done.

operator

Specify one of the following values:

CO

Contains—If a field-name is supplied, the position and scan-length values are retrieved from the field-name's defined starting position and physical length. If position and scan-length are supplied, the record is scanned for the data beginning at position for a length of scan-length.

EQ

Equal

NE

Not equal

GT

Greater than

GE

Greater than or equal to

LE

Less than or equal to

LT

Less than

data

Specify one of the following values:

C'c…'

Character—matches specified case

N'n…'

Numeric—processes the literal as defined by the field-name parameter. You must define the field-name parameter as a numeric field, and it is only valid when you supply a field-name parameter.

P'n…'

Packed

T'x…'

Text—matches both lower and uppercase alphabetic characters. Alphanumeric characters are permitted.

X'hh…'

Hexadecimal

data–type

Specify one of the following values:

EQP

Valid packed decimal data

NEP

Not valid packed decimal data

EQN

Valid numeric data

NEN

Not valid numeric data