×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




You can always just move the definition up to the global level.

Brian May
Project Lead
Management Information Systems
Garan, Incorporated
Starkville, Mississippi

Young i Professionals
http://www.youngiprofessionals.com



"Doug Palme" <DPalme@xxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
12/02/2009 04:02 PM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the IBM i/System i <rpg400-l@xxxxxxxxxxxx>
cc

Subject
Is this an issue or is there a work around (DTAARA in Sub Procedures)






I was converting some existing cycle code to /free format in a
subprocedure and ran across the following issue with a data area:

1416 DDebitNmbrS s 6 0 Dtaara(DebitNmbr)
======> aaaaaa
*RNF3757 20 a 022401 The keyword is not valid for definitions in
subproc

Is there any way to do this in s sub procedure or am I stuck with using a
sub routine only? The reason I ask is because I came across the following
on the IBM site:

No cycle code is generated for subprocedures. Consequently, you cannot
code:
Prerun-time and compile-time arrays and tables
*DTAARA definitions
Total calculations


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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