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



>II have a program (module) that contains two
>compile-time arrays; one is associated with
>the main procedure and I want to place the
>other in a called subprocedure.  In RPG III
>you would simple include the "program data"
>at the end of the source code in the order
>that corresponded with the E-specs for
>both the arrays.  How does one do it with ILE RPG?

Apparently, one doesn't at V4R5:

    14 pproc             b

    15 dproc             pi            10

    16 d inParm                         1    const

    17

    18 d local           s             10    dim(2) perrcd(1) ctdata

======>                                             aaaaaa    bbbbbb

*RNF3757 20 a      001800  The keyword is not valid for definitions in
subprocedures.
*RNF3757 20 b      001800  The keyword is not valid for definitions in
subprocedures.

It looks like both arrays will have to be global.
  --buck


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