Reading XML file from RPGLE program by using XML-INTO opcode

170 pts.
Tags:
AS/400
RPGLE
XML
How can I move data from XML to Data structure if data is more than 9999 in XML? The problem is I can declare the data structure with array max size 9999 where as using XML-INTO (ex: XML-INTO OrderList %XML('/home/orderlist.xml') : ' doc=file case=any') ). I can load first 9999 set of data but then what about rest of data? Can you please help me?

Software/Hardware used:
software
ASKED: February 28, 2013  9:53 AM
UPDATED: February 28, 2013  12:20 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    Why do you have to limit your array to 9999 elements? Please show your definitions. It will be easier if we know what definitions are involved.   If it turns out that you can't specify an array large enough, you will need to code a 'handler' procedure and use the %HANDLER() format of XML-INTO.   Tom
    125,585 pointsBadges:
    report
  • harith
    Thanks Tom I got my answer i wil use  %handlerthanks once again
    170 pointsBadges:
    report
  • TomLiotta
    Is it clear that (9999) is not the limit for elements in arrays? The smallest limit in current releases is 32767, while the most current limit is 16773104 elements. Data structures have similar limits. Total size of a defined data structure or array in the current release is 16773104 bytes. (The number of elements along with total size implies that such an array would have elements that are 1 byte each.) A %HANDLER() procedure would be called for when a XML attribute is too large to handle or perhaps is radically variable that it's too inefficient to declare maximum allowed size. -- Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following