AIX | HP-UX | Linux | OS/2 | OS/390 | OS/400 | PTX | SUN | Win NT |
X | X |
| X | X | X |
| X | X |
Purpose
Assigns a value to a particular row and column in a Net.Data table.
Format
@DTW_TB_SETV(table, value, row, col)
Parameters
Table 162. DTW_TB_SETV Parameters
Data Type | Parameter | Use | Description |
---|---|---|---|
table | table | INOUT | The macro table variable in which a table value will be set. |
string | value | IN | A character string that is assigned to the table value of the row and column specified in row and col. |
integer | row | IN | The row number of the value to be set. |
integer | col | IN | The column number of the value to be set. |
Return Codes
Table 163. DTW_TB_SETV Return Codes
Return Code | Explanation |
---|---|
-1001 | The server could not process a Net.Data request to allocate memory. |
1001 | An input parameter contained a NULL value. |
1003 | An incorrect number of parameters were passed on a function call. |
1004 | A parameter passed on a function call, required to be a Net.Data macro table variable, was of a different variable type. |
1005 | A parameter passed on a function call, required to be a string variable, was of a different variable type. |
1007 | A parameter contains a value which is not valid. |
1008 | A parameter is outside of table bounds. |
Usage Notes
Examples
Example 1: Assigns a value to row 3 column 3
%DEFINE myTable = %TABLE @DTW_TB_SETV(myTable, "value3.3", "3", "3")
Example 2: Delete the table value at row 4, column 2. This is done by passing a variable on the function call which has not been defined. By default, this variable will have a value of NULL.
%DEFINE myTable = %TABLE @DTW_TB_SETV(myTable, nullVar, "4", "2")