CALL "IS$SQLNUL" USING valueType typeCode nullStatus |
valueType | PIC S9(4) COMP or PIC X(n) depending on the SQLDA field | Stores the datatype code of a select-list column. |
typeCode | PIC S9(4) COMP or PIC X(n) depending on the SQLDA field | Returns the address of the data buffer. |
nullStatus | PIC S9(9) COMP | Returns the NULL status of the select-list column. 1 means that the column allows NULLs; 0 means that it does not. |
... PERFORM HANDLE-NULLS VARYING i FROM 1 BY 1 UNTIL i > SQLDNUM IN SELDSC. ... HANDLE-NULLS. CALL "IS$SQLNUL" USING SELDVTYP(i), SELDVTYP(i), NULL-STATUS. |