I'm having trouble getting context on what your code really looks like. If
you're defining a procedure, and not just some prototype, then you'll need
the Begin operation as shown here. You talk about the main procedure, but
then don't define any subprocedures, so that's what I'm left to assume is
going on.
P
**********************************************************************
P $PrcTab1 B
P
**********************************************************************
D $PrcTab1 PI
D
D RntInd1 S n
D
D
/free
From: David Gibbs <david@xxxxxxxxxxxx>
To: wdsci-l@xxxxxxxxxxxx
Date: 03/13/2015 11:35 AM
Subject: [WDSCI-L] 'Misplaced construct' driving me crazy
Sent by: "WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxx>
Folks:
I'm getting a really weird error in RDi 9.0
Here's the code that's causing the problem...
----------
DprocessFile PR
D pFile 10 const
D pBufferBefore like(ALBEFORE) const
D pBufferAfter like(ALAFTER) const
/free
initConstants();
write HEADER;
----------
Just after the closing paren on initConstants, RDi is reporting a
"misplaced construct" and yellow underlining the entire main procedure.
The yellow underlining ends at the '/end-free' at the end of the main
procedure.
----------
*inlr = *on;
/end-free
DprocessFile PI
D pFile 10 const
D pBufferBefore like(ALBEFORE) const
D pBufferAfter like(ALAFTER) const
----------
I'm sure I'm missing something obvious ... but I can't see it. Neither can
a co-worker.
Any ideas what RDi is complaining about?
Thanks!
david
--
IBM i on Power Systems: For when you can't afford to be out of business!
I'm riding a metric century (100 km / 62 miles) in the 2015 American
Diabetes Association's Tour de Cure to raise money for diabetes research,
education, advocacy, and awareness. You can make a tax deductible donation
to my ride by visiting
http://email.diabetessucks.net. My goal is $5800
but any amount is appreciated.
See where I get my donations from ... visit
http://email.diabetessucks.net/map for an interactive map (it's a geeky
thing).
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.