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



Frank:

SQLRPGLE most definitely does NOT work with qualified data structures at
V5R2 (IBM has indicated that they will be supported in a future-as yet
undefined-release).  If you are using fields in a data structure in an
embedded SQL statement, the data structure must NOT be qualified and
must be explicitly defined in the source member (cannot be in a /COPY
statement), though it can reference an external definition (EXTNAME
keyword).

One other issue I came upon:  The data structure that you use in your
SQL statement may NOT have any fields with the same name as fields in
another (qualified) data structure.  If you do, the pre-compiler may end
normally and your program/module may even compile with no errors, but
you may get "unexpected" results.  Here is an example of what I mean:

d datastruct1     ds                  inz
d  field1
d  field2

d datastruct2     ds                  qualified inz
d  field1
d  field2

The RPGLE compiler will understand this, but the SQL pre-compiler will
not.  There is a PTF to correct this:  SI11744 (product 5722ST1).

Hope this helps,
Bruce Guetzkow
Information Services Director
United Credit Service, Inc.
Phone: 262-723-2902
Fax: 262-723-5568
Email: bruceg@xxxxxxxxxxxxxxxxxxxxxxx
Web: www.unitedcreditservice.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.