Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
TBEXIST—determine whether a row exists in a table z/OS ISPF Services Guide SC19-3626-00 |
|
The TBEXIST service tests for the existence of a specific row in a table with keys. The current contents of the key variables, dialog variables that correspond to keys in the table, are used to search the table for the row. This service is not valid for non-keyed tables and causes the current row pointer (CRP) to be set to the top. Call invocation formatParameters
Return codesThese return codes are possible:
ExampleIn the keyed table TELBOOK, test for the existence of a row having
a specific key value.
If
return code = 0, the row exists.Set the program variable BUFFER to contain:
Set
program variable BUFLEN to the length of the variable BUFFER. Issue
the following command:
If
return code = 0, the row exists.or alternately
If
return code = 0, the row exists. |
Copyright IBM Corporation 1990, 2014
|