GET_NUM_COLUMNS
returns the number of columns in an SQL table. Use this information when processing compressed and decompressed records.
Syntax
For C:
#include "usrdecs" short num_columns; short source_or_target; short result; result = GET_NUM_COLUMNS (&num_columns, source_or_target);
For TAL:
?source usrdect int result; int .ext num_columns; int source_or_target; result := GET_NUM_COLUMNS (num_columns, source_or_target);
For COBOL:
?CONSULT =EXTRACT (or =REPLICAT) 01 num-columns PIC S9(4) COMP. 01 source-or-target PIC S9(4) COMP. 01 result PIC S9(4) COMP. ENTER C "GET_NUM_COLUMNS" using num-columns, source-or-target giving result.