Glen Marchesani wrote:
> ...
> I am currently calling an RPG program to do the actual
> call.  Here is the code
> c                   call(e)   program
> c                   parm                    parm01
> c                   parm                    parm02
> c                   parm                    parm03
> .
> .
> .
> c                   parm                    parm98
> c                   parm                    parm99
> where parm01..parm99 are based on pointers.  It is *UGLY
> but it works.

Ah, for my previous post, I forgot you were already using RPG.  With
your current setup, if you define parm01 etc as 1A, you could use this
prototype and select statement to do your calls.  If you rename the
parms you're passing to p01, p02, p99, you can cram more parms on each

D pgm          pr          extpgm(program)
D   p1                 1a  options(*nopass)
D   p2                 1a  options(*nopass)
D   p3                 1a  options(*nopass)
D etc
D   p99                1a  options(*nopass)
      when numparms = 0;
      when numparms = 1;
      ... etc ...
      when numparms = 99;
            ... etc ...

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by 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.