× 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 Tue, 9 Apr 2013, at 13:32:42, Andy Thompson <Andy.Thompson@xxxxxxxxxxxxxx> wrote:

For writing XML I've managed to live with the 32k field size limit, but reading XML written by someone else ... we have no control over what they send. We could read it in VB and export shortened XML ... but it's an extra process, and we like RPG.

I thought you said earlier that you were on V7? The 32K limit in RPG actually disappeared back in ... hmmmm ... V4Rsomthing and went up to 64K. In V6 it went up to 16Mb.

That said - I suspect it may not help you with your problem because there may still be an underlying limit in the underlying interfaces that would preclude you from receiving the data.

This works for me at V7 and the XML-INTO completes with 80,000+ characters in the field.

D progStatus SDS
D xmlElements 20i 0 Overlay(progStatus: 372)

D outer DS
D bigField 100000a

d xml_doc s 100000a Varying
d i s 10i 0

/free
xml_doc = '<Outer><bigField>';
for i = 1 to 30000;
xml_doc += 'More data entry #' + %Char(i) + ':';

if %len(xml_doc) > 80000; // Too lazy to work out exact limit!!
leave;
endif;

endfor;
xml_doc += '</bigField></Outer>';
Xml-Into outer
%XML(xml_doc :
'case=any');

*InLr = *On;

Jon Paris

www.partner400.com
www.SystemiDeveloper.com





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.