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



Field length max is 64k today. Someday (soon?) it will be 16MB or so, but today
it is 64k.

Today what you need to do is allocate your 2+ meg of memory using %ALLOC().
The have a based variable on that point, for example:

D ptr       S            *
D bigVar    S         65535A   Based(ptr)

  /free
      Ptr = %alloc(2000000);
  /end-free

Now when you use BIGVAR you can read up to 2 meg of data into it, even though it
things is 64k.

-Bob


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On
Behalf Of Jerry Adams
Sent: Tuesday, February 06, 2007 2:50 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: RPGLE Max Field length issue.....

Are you saying that each line of the XML string can be up to 2mb long?  
That's some string!  Or that the total size of the XML document (all 
lines combined) is 2mb? 


        * Jerry C. Adams
*IBM System i5/iSeries Programmer/Analyst
B&W Wholesale Distributors, Inc.* *
voice
        615.995.7024
fax
        615.995.1201
email
        jerry@xxxxxxxxxxxxxxx <mailto:jerry@xxxxxxxxxxxxxxx>



Shailesh_Udashi wrote:
Hi all, 

We are facing an issue of field size AS400. We are expected to process
an incoming message of 2mb size (XML string) on AS400. My understanding
is that the max field length can be 32767. Then how do we receive a
value longer than this in RPG?

Appreciate your help with this issue. 

Regards, 
S. S. Udashi




DISCLAIMER:
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE
COMPANY INFORMATION. Any review or reliance by others or copying or distribution
or forwarding of any or all of the contents in this message is STRICTLY
PROHIBITED. If you are not the intended recipient, please contact the sender by
email and delete all copies; your cooperation in this regard is appreciated.

  


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.