×
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.
Hi,
Looking for suggestions for ways to program arrays of structures (which
also have arrays) as an input parameter. Program will be called from an
external Java program using pcml. Unfortunately we are on V5R1 and the
project deadlines may not allow an upgrade to V5R2 before implementation.
Within the RPGLE program the input structure looks something like this:
SKU 15,A
num1 5,0
SKU Size 1 15,A
Qty for Size 1 7,0
Date for Size 1 8,0
.
.
.
SKU Size 36 15,A
Qty for Size 36 7,0
Date for Size 36 8,0
This whole structure will be repeated up to 30 times in one call to the
program.
There is also a return code at the end of all of this.
Partial list of the proposed pcml call looks something like this:
<struct name='availreply' >
<data name="size" type="char" length="XX"/>
<data name="availabilityQty" type="<packed or zoned>" length="XX"/>
<data name'"date" type="<[acked or zoned>" length="8"/>
</struct>
<struct name='stylerequest' usage='inputoutput'>
<data name="styleNumber" type="char" length="XX" usage='input"/>
<data name="reply" type="struct" struct="availreply"
usage="output" conunt="36"/>
</struct>
<program name="pgm1" path="/QSYS.LIB/.../pgm1.pgm">
<data name="request" type="struct" struct="Stylerequest"
count="30" usage="inputoutput"/>
<data name="returnCode" type="char" length="XX" usage="output"/>
</program>
The call will be requesting from one to 30 SKUs at a time.
So far, I am not seeing any way to do this other than one huge input parm
with all the fields listed individually. Perhaps a list of 30 structures,
or would that be 30 parameters?
Thanks for the help.
Dave Murvin
DRM Enterprises, Inc.
As an Amazon Associate we earn from qualifying purchases.
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.