|
For idx = 1 to columnNbr;LENGTH,
Exec sql GET DESCRIPTOR :desc1 VALUE :idx :journalData.colName =
DB2_SYSTEM_COLUMN_NAME,
:journalData.type = TYPE,
:journalData.length =
:journalData.precision =example I
PRECISION;
Select;
When journalData.type = 4; // Integer
Exec sql GET DESCRIPTOR :desc1 VALUE :idx :intType = DATA;
yajl_addChar('' + journalData.colName + ''
:%Char(intType));
Endsl;
Endfor;
I got this far but I don't know how I should be getting DATA. The
documentation says that the data type of DATA matches the data type
specified by TYPE. For example, if the TYPE = 1 (character) than
CHARACTER(n)
So how would I declare a variable to receive DATA. In the above
think I'm handling the INTEGER tyoe correctly but how do I definevaraiable
for the other types?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.