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



Now that's crazy talk. But in my case it would be ideal as most of the multiple occurring segments will have only 1 occurrence.

Kevin
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Greg Wilburn
Sent: Friday, August 31, 2018 1:23 PM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxx>
Subject: [EXT] RE: XML with 8 levels of multi-occurring segments

Wouldn't it be nice to have arrays that only contained one element, then "auto expanded" based on a MAXDIM keyword?

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jon Paris
Sent: Friday, August 31, 2018 12:21 PM
To: Rpg400 Rpg400-L <rpg400-l@xxxxxxxxxxxx>
Subject: Re: XML with 8 levels of multi-occurring segments

I meant that there is an awful lot of this stuff.

If it is this element/attribute name then else if it is this name and I'm in this structure ... type of stuff.

Not to mention having to handle multiple data events for each element/attribute handle white spec characters etc. etc.

I find XML-INTO just so much less work. Just code a DS and bingo! (Well "Just" can sometimes be a pain but ...).


Jon Paris

https://na01.safelinks.protection.outlook.com/?url=www.partner400.com&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata=zX8KO5nFDS6H8TQR0hS%2BoZ1rSSYjWuKXM2RNdeHJG%2FE%3D&amp;reserved=0
https://na01.safelinks.protection.outlook.com/?url=www.SystemiDeveloper.com&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata=cI1BlElgMSeFYeDxGqbuZDe%2FCC42POYsJ1tzYKbgeH0%3D&amp;reserved=0

On Aug 31, 2018, at 12:06 PM, Alan Campin <alan0307d@xxxxxxxxx> wrote:

It was said earlier that XML-SAX is a lot of work. I don't get that.
XML-SAX is easy, to me at lot easier than trying to use XML-INTO and
you don't have to sweat memory. You only need enough to store one
record (I don't know what you are doing with records. Processing
everything for an order and then writing to disk?).

Anyway, I would be happy to send you an example program I wrote that
uses XML-SAX.

On Fri, Aug 31, 2018 at 8:57 AM Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:

Even a single instance of an Order won't fit? Surely it can't be
that huge?


Jon Paris

https://na01.safelinks.protection.outlook.com/?url=www.partner400.com
&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008
d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C6367133302329
42969&amp;sdata=zX8KO5nFDS6H8TQR0hS%2BoZ1rSSYjWuKXM2RNdeHJG%2FE%3D&am
p;reserved=0
https://na01.safelinks.protection.outlook.com/?url=www.SystemiDevelop
er.com&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d
06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C6367133
30232942969&amp;sdata=cI1BlElgMSeFYeDxGqbuZDe%2FCC42POYsJ1tzYKbgeH0%3
D&amp;reserved=0

On Aug 31, 2018, at 10:54 AM, Kevin Grimes <kevin_grimes@xxxxxxxxx>
wrote:

<ORDERS> will not fit into 16mb and that's my main issue right now.
How
can I define the data structure to be less than 16mb or do I need to
use some other technique?


-----Original Message-----
From: Jon Paris [mailto:jon.paris@xxxxxxxxxxxxxx]
Sent: Friday, August 31, 2018 9:44 AM
To: Rpg400 Rpg400-L <rpg400-l@xxxxxxxxxxxx>
Subject: Re: XML with 8 levels of multi-occurring segments

You could use XML-SAX - but that's a lot of work unless you only
want a
few fields.

In this case you should be able to do it with XML-INTO and the
%Handler
option. As long as the size of one <ORDERS> will fit into 16Mb it
should work just fine.

If you need more help in understanding how that would work just holler.


Jon Paris

https://na01.safelinks.protection.outlook.com/?url=www.partner400.co
m&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a0
08d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C6367133302
32942969&amp;sdata=zX8KO5nFDS6H8TQR0hS%2BoZ1rSSYjWuKXM2RNdeHJG%2FE%3
D&amp;reserved=0
https://na01.safelinks.protection.outlook.com/?url=www.SystemiDevelo
per.com&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff42
4d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C6367
13330232942969&amp;sdata=cI1BlElgMSeFYeDxGqbuZDe%2FCC42POYsJ1tzYKbge
H0%3D&amp;reserved=0

On Aug 31, 2018, at 9:32 AM, Kevin Grimes <kevin_grimes@xxxxxxxxx>
wrote:

I have the following XML file to process -

<LOADHDR> single
<LOADSTOP> single
<ORDERS> multiple
<Field 1>
<STORER> single
<LOADUNITDETAIL> multiple
<PACKIDH> single
<PACKIDD> multiple
<PACKIDSUBDETAIL> multiple
<Field 2>
<SKU> multiple
<Field 3>
<ORDERDETAIL> multiple
<PICKDETAIL> multiple
<LOTATTRIBUTE> multiple

I'm trying to read this into a data structure and with the nested
multiple occurring segments it is too big to compile. I'm relatively
new to XML processing and I'm hoping there's another method to
consuming the XML file besides just reading it into a DS with nested arrays.

Thanks,

Kevin G
"This email and any attachments, contain Genuine Parts Company
confidential information that is proprietary, privileged, and
protected by applicable laws. If you have received this message in
error and are not the intended recipient, you should not retain,
distribute, disclose or use any of this information and you should
destroy this email, any attachments or copies therein forthwith.
Please notify the sender immediately by email if you have received this email in error."
--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email:
RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
options,
visit:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fli
sts.midrange.com%2Fmailman%2Flistinfo%2Frpg400-l&amp;data=02%7C01%7
CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439
d764f2cb43eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata
=1RWRgGT4bHs6UIN2cjrfJc%2FS1DVzFybHlWVL16oPtSM%3D&amp;reserved=0
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Frpg400-l&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata=XBWqF8%2FKX4sg0EQx%2B3oDWkAtzbH9fotHiGdmEmWQmxU%3D&amp;reserved=0.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Famz
n.to%2F2dEadiD&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca
0a2cff424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7
C0%7C636713330232942969&amp;sdata=X985EFC033LPhtDFqbBbbmgFYtj6X2CaU
0WlIKL3c%2F4%3D&amp;reserved=0


--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flis
ts.midrange.com%2Fmailman%2Flistinfo%2Frpg400-l&amp;data=02%7C01%7CK
evin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439d76
4f2cb43eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata=1RW
RgGT4bHs6UIN2cjrfJc%2FS1DVzFybHlWVL16oPtSM%3D&amp;reserved=0
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Frpg400-l&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata=XBWqF8%2FKX4sg0EQx%2B3oDWkAtzbH9fotHiGdmEmWQmxU%3D&amp;reserved=0.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Famzn.
to%2F2dEadiD&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2c
ff424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C6
36713330232942969&amp;sdata=X985EFC033LPhtDFqbBbbmgFYtj6X2CaU0WlIKL3c
%2F4%3D&amp;reserved=0

--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email:
RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
options,
visit:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist
s.midrange.com%2Fmailman%2Flistinfo%2Frpg400-l&amp;data=02%7C01%7CKev
in_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439d764f2
cb43eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata=1RWRgGT
4bHs6UIN2cjrfJc%2FS1DVzFybHlWVL16oPtSM%3D&amp;reserved=0
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Frpg400-l&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata=XBWqF8%2FKX4sg0EQx%2B3oDWkAtzbH9fotHiGdmEmWQmxU%3D&amp;reserved=0.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Famzn.
to%2F2dEadiD&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2c
ff424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C6
36713330232942969&amp;sdata=X985EFC033LPhtDFqbBbbmgFYtj6X2CaU0WlIKL3c
%2F4%3D&amp;reserved=0

--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists
.midrange.com%2Fmailman%2Flistinfo%2Frpg400-l&amp;data=02%7C01%7CKevin
_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439d764f2cb4
3eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata=1RWRgGT4bHs
6UIN2cjrfJc%2FS1DVzFybHlWVL16oPtSM%3D&amp;reserved=0
or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Frpg400-l&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata=XBWqF8%2FKX4sg0EQx%2B3oDWkAtzbH9fotHiGdmEmWQmxU%3D&amp;reserved=0.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Famzn.t
o%2F2dEadiD&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff
424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C6367
13330232942969&amp;sdata=X985EFC033LPhtDFqbBbbmgFYtj6X2CaU0WlIKL3c%2F4
%3D&amp;reserved=0

--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Frpg400-l&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata=1RWRgGT4bHs6UIN2cjrfJc%2FS1DVzFybHlWVL16oPtSM%3D&amp;reserved=0
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Frpg400-l&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata=XBWqF8%2FKX4sg0EQx%2B3oDWkAtzbH9fotHiGdmEmWQmxU%3D&amp;reserved=0.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Famzn.to%2F2dEadiD&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata=X985EFC033LPhtDFqbBbbmgFYtj6X2CaU0WlIKL3c%2F4%3D&amp;reserved=0
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Frpg400-l&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata=1RWRgGT4bHs6UIN2cjrfJc%2FS1DVzFybHlWVL16oPtSM%3D&amp;reserved=0
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Frpg400-l&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata=XBWqF8%2FKX4sg0EQx%2B3oDWkAtzbH9fotHiGdmEmWQmxU%3D&amp;reserved=0.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Famzn.to%2F2dEadiD&amp;data=02%7C01%7CKevin_Grimes%40genpt.com%7Ca514ca0a2cff424d06a008d60f667eec%7Cb439d764f2cb43eaac052e373c83043e%7C0%7C0%7C636713330232942969&amp;sdata=X985EFC033LPhtDFqbBbbmgFYtj6X2CaU0WlIKL3c%2F4%3D&amp;reserved=0
"This email and any attachments, contain Genuine Parts Company confidential information that is proprietary, privileged, and protected by applicable laws. If you have received this message in error and are not the intended recipient, you should not retain, distribute, disclose or use any of this information and you should destroy this email, any attachments or copies therein forthwith. Please notify the sender immediately by email if you have received this email in error."

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.