|
>From: J Michael Smith <JMichael.Smith@arch.com> >Date: Thu, 7 Mar 2002 17:03:12 -0600 > >Barbara, > >Could you provide an example of "The parameter DIM, OCCURS and PERRCD >keywords no longer needs to be previous defined." Sure. Try compiling this program on V4R5, or on V5R1 with TGTRLS(*PRV): D proc pr D arrayParm 1a dim(max) D max c 10 C return But that's not the case that causes the problems. Try this case. The DIM on the second last line gets this message about DIM having to be pre-defined. But there it is, defined right there on line 1. The problem is that when the compiler is scanning a subprocedure, global references are not resolved until it reaches the end of the subprocedure, because of RPG's allowance of forward-referencing. D max c 10 D proc pr D arrayParm 1a dim(max) C return P proc b D proc pi D arrayParm 1a dim(max) P proc e Barbara Morris
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.