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



Ouch :)

Rob,
for what its worth I have not done an input primary in years, however the
example I had was doing exactly that.....I figured, he he is supposed to
be the expert not me .......

Point taken and the help from you and others is always appreciated.......

Douglas




From:
rob@xxxxxxxxx
To:
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Date:
09/28/2009 02:44 PM
Subject:
Re: declaring a file local to a sub-procedure
Sent by:
rpg400-l-bounces@xxxxxxxxxxxx



RTFM :-) You got two errors.

From the RPG ILE reference manual, chapter 13 - File Description
Specifications. Before any subsections.
Local files defined in subprocedures must be full-procedural files.

Think about that. Regardless of your opinion about the cycle, who puts an

"input primary" cycle type file as a local file?

Now let's look at another section of the manual, Chapter 11 - About
Specifications, subsection RPGIV specification types. Look at the
illustration there.
Subprocedure Section (Repeated for each procedure)
P Procedure
F File Description
D Definition
C Calculation
P Procedure

However you have P, D, F, D, C, P not P, F, D, C, P. Move your D-PI after

the F spec.

Rob Berendt

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.