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



On the other hand, REXX and SQL are indeed a wonderful match.  You can use SQL within a REXX procedure and then call CL statements.  REXX allows you to execute SQL statements (including fetch from a cursor in a loop) and then use the returned variables in CL statements.

I did an article about it way back when:

https://www.mcpressonline.com/programming/sql/techtip-calling-sql-from-rexx

It's not as seamless as embedded SQLRPGLE, but once you understand the syntax it's extremely powerful.


On 8/16/2019 11:41 PM, Roger Harman wrote:
While CL & SQL are not a match made in heaven, I've used the DCLF/RCVF technique in the past.

If you need multiple selects & files concurrently, keep in mind that CL will support up to 5 DCLF's.

If you're talking about a single record result, consider using a command calling an RPG to do the work. I write a lot of "RTV" type commands to return configuration info to my CL programs.

Roger Harman
COMMON Certified Application Developer – ILE RPG on IBM i on Power


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.