Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
TBGET—retrieve a row from a table z/OS ISPF Services Guide SC19-3626-00 |
|
The TBGET service accesses a row in a table. If the NOREAD parameter is not specified, the row values are read into the function pool. For tables with keys, the table is searched for the row to be fetched. The current contents of the key variables, dialog variables that correspond to keys in the table, are used as the search argument. For tables without keys, the row pointed to by the current row pointer (CRP) is fetched. You can use the TBSCAN, TBSKIP, TBBOTTOM, and TBTOP services to position the CRP. The CRP is always set to point to the row that was fetched. All variables in the row, including key and name variables, if any, are stored into the corresponding dialog variables. A list of extension variable names can also be retrieved. Command invocation formatCall invocation formatParameters
Return codesThese return codes are possible:
ExampleIn the keyed table TELBOOK, from a row having a specific key value,
copy variable values into the respective function pool variables having
the same names.
Set
the program variable BUFFER to contain:
Set
program variable BUFLEN to the length of the variable BUFFER. Issue
the command:
or alternately
|
Copyright IBM Corporation 1990, 2014
|