|
From: Steve Richter <stephenrichter@xxxxxxxxx>Example, there are 200 of these. I get different lengths back from each parm.
Sent: Jul 2, 2014 7:21 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.
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>rpg400-l@xxxxxxxxxxxx>
Sent: Jul 1, 2014 11:50 AM
To: "RPG programming on the IBM i (AS/400 and iSeries)" <
Subject: RE: Vendor call returns up to 200 varying parms back, lookingfor easy way to scan it all.
parameters, then you can loop through the array easily to determine if they
If they are the all the same size use an array element for the
contain data.
200 999a varying *nopass parameters. Other than select/if constructs does
Scott
Using a third party product, one of the call into their product supports
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.
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 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.