Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
TBMOD—modify a row in a table z/OS ISPF Services Guide SC19-3626-00 |
|
The TBMOD service unconditionally updates a row in a table. For tables with keys, the table is searched for the row to be updated. The current contents of the key variables, dialog variables that correspond to keys in the table, are used as the search argument. If a match is found, the row is updated. If a match is not found, a TBADD is performed, adding the row to the end of the table (or it is added at an appropriate point for maintaining the table) in the sequence specified in a previously processed TBSORT request. For tables without keys, TBMOD is equivalent to TBADD. This processing takes place: any new row is added either immediately following the current row, pointed to by the current row pointer (CRP), or it is added at a point appropriate for maintaining the table in the sequence specified in a previously processed TBSORT request. The CRP is always set to point to the row that was updated or added. The current contents of all dialog variables that correspond to columns in the table, keys and names, 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 this row, not to the entire table. Whenever the row is updated, the extension variables must be specified again if they are to be rewritten. When the TBMOD service uses the TBADD service to add rows to a table, the default value for number-of-rows parameter of the MULT keyword for TBADD can affect TBMOD execution. See the description of the TBADD service for information. Command invocation formatCall invocation formatParameters
Return codesThese return codes are possible:
ExampleUpdate or add a row of variables 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
|