MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » March 2011

Re: SQLCLI data types and internal (System i) formats



fixed

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





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact