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