copy books if you use the COPY directive. Use the INCLUDE directive
The opposite, members included by the /COPY directive are considered and
members with embedded with /INCLUDE are ignored.
If the /COPY member includes nested copy books and you need all levels you
need to set the RPG preprocessor options (RPGPPOPT) to *LVL1 or *LVL2
Agreed there are a few exceptions, constants, array elements, data
structures with multiple nested level, but these restrictions are also valid
for fixed formed D-Specs.
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
-----Ursprüngliche Nachricht-----
Von: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] Im Auftrag von
dlclark@xxxxxxxxxxxxxxxx
Gesendet: Monday, 18.7 2016 18:46
An: RPG programming on the IBM i (AS/400 and iSeries)
Betreff: Re: Embedded SQL with fully free form code?
"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 07/18/2016 12:31:52
PM:
The procedure compiles fine if TYPEID or PTYPENAME are either defined
as char's or like fields in files.
The SQL precompiler is not as smart as the RPG compiler. The SQL
precompiler will reject definitions are are marked as constants and won't
find definitions that are in copy books if you use the COPY directive. Use
the INCLUDE directive, instead. It also can't handle definitions that use
more than one qualifier.
Sincerely,
Dave Clark
--
int.ext: 91078
direct: (937) 531-6378
home: (937) 751-3300
Winsupply Group Services
3110 Kettering Boulevard
Dayton, Ohio 45439 USA
(937) 294-5331
****************************************************************************
*****************
This email message and any attachments is for use only by the named
addressee(s) and may contain confidential, privileged and/or proprietary
information. If you have received this message in error, please immediately
notify the sender and delete and destroy the message and all copies. All
unauthorized direct or indirect use or disclosure of this message is
strictly prohibited. No right to confidentiality or privilege is waived or
lost by any error in transmission.
****************************************************************************
*****************
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
As an Amazon Associate we earn from qualifying purchases.