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



Should I change my focus to prototypes?

The RPG ref on an *ENTRY PARM says "Fields or data structures defined with
the keywords BASED, IMPORT, or EXPORT" are not allowed.

Thanks,
Dan

On 1/30/06, Dan <dan27649@xxxxxxxxx> wrote:
>
> I searched, but it's all greek to me.  I'm not even sure I've got the
> terminology correct, so feel free to correct where needed.  And, by all
> means, provide links as appropriate.
>
> I've got an ILE RPG program (PGMA) that will call an ILE RPG service
> program (SRVPGMB).  I would like SRVPGMB to return a dynamically allocated
> array back to PGMA.  In real life, the array could end up having 10 elements
> or 20000 elements.
>
> Unfortunately, the compiler doesn't think much of passing a dynamically
> allocated array as a parameter, issuing RNF5029 "Result-Field entry of PARM
> operation in *ENTRY PLIST is not valid; specification is ignored."  I tried
> to pass FLa, defined below:
>
>    d FL@             s               *
>    d                 ds                  Based( FL@ )
>    d FLa                                 Dim( 32766 )
>    d  Fld1                         10    Overlay( FLa : *Next )
>    d  Fld2                         10    Overlay( FLa : *Next )
>    d  Fld3                           3i 0 Overlay( FLa : *Next )
>
> Is there a way to accomplish this?
>
> TIA,
> Dan
>

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.