SELMEMIF supports the following parameters:
Use field-name when referencing a data field that is defined in the record's layout. The use of field-name requires that the record's layout be available to the CA File Master Plus 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.
The starting field positioning the record. Valid values are the following:
The actual position number
The relative position to the record's current location
The amount of data to compare. If zero, scanning is done starting at the position parameter value to the record length. Valid values are 0 – 32760. If the scan-length is omitted, no scanning is done.
Valid choices include the following:
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.
Equal
Not equal
Greater than
Greater than or equal to
Less than or equal to
Less than
Valid choices include the following:
Character—matches specified case
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.
Packed
Text—matches both lower and uppercase alphabetic characters. Alphanumeric characters are permitted.
Hexadecimal
Valid choices include the following:
Valid packed decimal data
Not valid packed decimal data
Valid numeric data
Not valid numeric data
This example command and keyword syntax copies the member if the first nine characters of any of the member's records begin with either the character string '//FMMVS31' or '//FMMVS41'. No other members are copied:
COPY,
REPLACEMEM(Y),
SELMEMIF(1,EQ,C'//FMMVS31'),
OR(1,EQ,C'//FMMVS41')
An equivalent command follows:
COPY, REPLACEMEM(Y), SELMEMIF(1,EQ,C'//FMMVS31,//FMMVS41')
|
Copyright © 2013 CA.
All rights reserved.
|
|