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



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.

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.