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



can you post the PR prototype of the procedure or program? Are you saying
each pass by reference output parameter is a different length? like 20a
varying, 30a varying ...

my approach would be to write a program that would generate the repeating
code you need. Have that code generate the code you need for each
parameter. Then write the generated code to a srcmbr and copy the source
into your actual source code.

-Steve



On Wed, Jul 2, 2014 at 6:27 AM, Chris <cholko@xxxxxxxxxxxxxx> wrote:

Hence the problem, they are not all the same size. The varying means we
get results of different sizes in each parm.


-----Original Message-----
From: Scott Mildenberger <SMildenberger@xxxxxxxxxxxxxxxxxx>
Sent: Jul 1, 2014 11:50 AM
To: "RPG programming on the IBM i (AS/400 and iSeries)" <
rpg400-l@xxxxxxxxxxxx>
Subject: RE: Vendor call returns up to 200 varying parms back, looking
for easy way to scan it all.

If they are the all the same size use an array element for the
parameters, then you can loop through the array easily to determine if they
contain data.

Scott


Using a third party product, one of the call into their product supports
200 999a varying *nopass parameters. Other than select/if constructs does
anyone have a suggestion of quickly scanning all these returned parameters
to see if they contain data? The call into their product does return the
number of these that are used, just not which of them that contains valid
data as some can be blank
--

--
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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.