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



Hi,

Never had to do this yet : SQL in a RPG400 pgm.


C OFCTRT IFEQ *BLANK

C OCLTNO ANDNE0

C/EXEC SQL

C+ SELECT DNORF INTO : WNORF

C+ FROM DOSCLT

C+ WHERE DCLTNO = : OCLTNO AND

C+ DDOSAN = ' ' AND

C+ DDOSTY = 'R'

C+ FETCH FIRST ROW ONLY

C/END-EXEC

*

C ENDIF


I find it strange that I can't find an example that shows the RPG code that SQL is supposed to be embedded into!

I'm getting the compile error QRG5175 that states positions 7 and 8 are incorrect for a subroutine specification. In SEU, no error is highlighted whilst editing. Maybe the compiler is missing something. We don't have any SQLRPG programs but no problems with SQLRPGLE.

Any thoughts?




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.