|
The system does -- if EXTIND = *YES has been specified as an
option setting. ALL of our programs use EXTIND = *YES as a standard.
After a select-into or a fetch SQL sets the indicators to one of
three values: 0, -1, or -2; where if you use <> -1 to check for nulls then
the check is in error. -2 means that not all data could be transferred to
your program, but some of the data could have been transferred as in the
case of truncation.
For insert and update SQL accepts one of four indicator values as
conditions for how to use the associated data columns specified in the SQL
statement. The values are: 0, -1, -5, or -7; where 0 means to insert or
update the associated column using the value specified in the statement;
-1 means to insert or update the associated column as a null value; -5
means to insert or update the associated column as the DDL-defined default
value; and -7 means to ignore the associated column completely skipping
its insert or update.
Sincerely,
Dave Clark
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.