Parameters

table-name
Specifies the name of the table for which an argument is to be established.
name-list
Specifies a list of extension variables, by name, whose values are to be used as part of the search argument. See Invoking the ISPF services for specification of name lists.
NEXT
Specifies that the scan is to proceed from the row following the current row to the bottom of the table. This is the default.
PREVIOUS
Specifies that the scan is to proceed from the row preceding the current row to the top of the table. To scan the bottom row, CRP must be positioned to TOP.
name-cond-pairs
Specifies a list of names and conditions for determining the search argument conditions for scanning a table. There must be one condition specified for every name specified in the list. This list is used to associate a particular operator (condition) with a previously established scan argument. This parameter does not affect how the search arguments are established.
The name-cond-pairs syntax is as follows:
(name1,condition1,name2,condition2  ...)

Each name must be the name of a key field, name field, or name of an extension variable for the table. If the specified name does not exist, a severe error is encountered.

The condition specifies the scan condition for the name (column) to which it is paired. The search arguments are specified in dialog variables that correspond to columns in the table, and this determines the columns that take place in the search.

The valid condition-values are EQ, NE, LE, LT, GE, and GT. If some or all condition-value-pairs are not specified, the default is EQ for those columns participating in the search. Each argument and its associated operator are treated as separate entities, not as subfields of a single argument. The condition-values LE, LT, GE, and GT might be immediately followed by a date indicator. The date indicator is Yn, where Y indicates that the variable name associated with the condition-value is a date, and n is an integer from 1 to 7 indicating the offset within the variable value where the year begins. The year should be a 2-digit year, because a century value is inserted in front of the 2-digit year for compare purposes. These meanings are associated with the condition-values:
EQ
Specifies that the search is for an equal condition between the argument value and the row value. This is the default.
NE
Specifies that the search is for a row value not equal to the argument value.
LE
Specifies that the search is for a row value less than or equal to the argument value.
LT
Specifies that the search is for a row value less than the argument value.
GE
Specifies that the search is for a row value greater than or equal to the argument value.
GT
Specifies that the search is for a row value greater than the argument value.
Yn
Can be used with LE, LT, GE, and GT. It must immediately follow one of the four allowed condition-values. The Y indicates that the paired variable name is a date variable that needs a century value added to a 2-digit year so that dates can be compared correctly. The n is a number from 1 to 7 that gives the offset within the variable value where the year is located.
buf-len
Specifies a fullword fixed binary integer containing the length of buffer.
buffer
Specifies a buffer containing the name of the service and its parameters in the same form as they would appear in an ISPEXEC call for a command procedure.