× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 3/2/11 9:20 AM, Dennis Lovelady wrote:
I have been scanning the web looking for a made-for-humans chart
that will describe the various SQL CLI values and how they relate to
our beloved i. There are a few references that make a feeble attempt
at correlating [some of] these values against C object types, but
these fall way short, especially when it comes to Packed vs. Zoned,
et cetera. (This is made more confusing that the terms PACKED and
ZONED don't even apparently make it to the SQL CLI vocabulary, and
are apparently replaced by the ambiguous SQL_NUMERIC and SQL_DECIMAL
(?) terms. But I digress.)

Some of the ambiguities are: SQL_BIGINT, SQL_BINARY, SQL_INT,
SQL_NUMERIC, SQL_SMALLINT. Then there's SQL_FLOAT, SQL_REAL and
SQL_DECFLOAT. That's just for starters. Obviously, some of these are
synonyms for others, but that knowledge by itself isn't much help.

Where may I find a chart or other reference that will help me
decipher the SQL data types, in hopes that a clever routine may make
use of this information for conversion purposes?


Perhaps the various "Determining equivalent SQL and <whatever HLL> data types" is of some value; showing how SQLTYPE and SQLLEN are determined for host variables.? I happened to be in v5r4 infocenter, so:
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzajp/rzajpequivsqlirpg.htm

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.