× 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.



E
Sent via BlackBerry by AT&T

-----Original Message-----
From: rob@xxxxxxxxx
Sender: midrange-l-bounces@xxxxxxxxxxxx
Date: Thu, 18 Apr 2013 11:44:39
To: Midrange Systems Technical Discussion<midrange-l@xxxxxxxxxxxx>
Reply-To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: SQL Statement size limit?

What could cut your sql statements in half?
Well, funny you should mention that...
The SQL Reference manual, Appendix A, 'Maximum length of an SQL statement'
value lists the limit at V5R4 and V6R1 as 2,097,152 bytes. Run SQL Scripts
uses the IBM Toolbox for Java JDBC driver which sends all SQL statement
text to the host in UCS-2 (CCSID 13488) which uses 2 bytes to represent
each character. So the effective limit in characters will be one half the
limit in bytes, or 1,048,576 characters.

http://www-912.ibm.com/s_dir/SLKBase.nsf/1ac66549a21402188625680b0002037e/cf718297a375333f86257457005d723c?OpenDocument

For subselect limits and how you may reach them when you didn't think you
would, check out
http://publib.boulder.ibm.com/infocenter/wpdoc/v6r0/index.jsp?topic=/com.ibm.wp.exp.doc/wps/tbl_pdm.html
searching for sql0101


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.