:host_var INDICATOR :indicator_var |
:host_var:indicator_var |
Input | -1 | The value of the host variable is ignored and NULL will be used, instead. |
>=0 | The whole value of the host variable will be used, no matter the value of the indicator variable. | |
Output | -2 | The column value does not fit the host variable, but the length of the column value cannot be determined. |
-1 | The column value is NULL. The program may not use the value of the host variable. | |
0 | The column value fits the host variable. | |
>0 | The column value does not fit the host variable. The indicator variable value is the length, in characters for national items, of the column value. When the data truncation occurs on a output parameter of a stored procedure, the behavior is influenced by the iscobol.esql.indicator_trunc_on_call (boolean) configuration property. |
... working-storage section. ... exec sql include SQLCA end-exec. 77 item1 pic 9(3). 77 ind1 pic s9(4) comp. ... procedure division. ... exec sql select column1 into :item1:ind1 from table1 where column1 = 1 end-exec. ... |