Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
TBPUT—update a row in a table z/OS ISPF Services Guide SC19-3626-00 |
|
The TBPUT service updates the current row of a table. For tables with keys, the current contents of the key variables, dialog variables that correspond to keys in the table, must match the key of the current row, pointed to by the current row pointer (CRP). Otherwise, the update is not performed. For tables without keys, the row pointed to by the CRP is always updated. If the update was successful, the CRP remains unchanged. It continues to point to the row that was updated. The current contents of all dialog variables that correspond to columns in the table are saved in the row. Additional variables not specified when the table was created, can also be saved in the row. These "extension" variables apply only to the row, not to the entire table. Whenever the row is updated, the extension variables must be specified again if they are to be rewritten. Command invocation formatCall invocation formatParameters
Return codesThese return codes are possible:
ExampleUpdate a row, in the table TELBOOK, using values from variables
in the function variable pool.
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
|