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



Thanks all for the comments and suggestions. I was hoping to be able to
avoid having a CL call another program which called the SQL. But c'est la
vie.


Gord

On Thu, Feb 15, 2018 at 5:05 PM, Roger Harman <roger.harman@xxxxxxxxxxx>
wrote:

Someone recently mentioned Paul Tuohy's SQL function service program.
That may be an avenue to explore. You should be able to call those from CL.

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







From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> on behalf of Scott
Klement <midrange-l@xxxxxxxxxxxxxxxx>
Sent: Thursday, February 15, 2018 1:01 PM
To: Midrange Systems Technical Discussion
Subject: Re: Calling an SQL Procedure from CL


Is it possible? Sure.

But, it would obviously be much easier from another language that has
better SQL support.


On 2/15/2018 2:14 PM, Gord Hutchinson wrote:
Is it possible to call an sql procedure from within a CL program/module
and
return a value?

I'm envisioning using SQL to extract something from a table and having CL
do something depending on what was extracted.

A Google search finds how to call a CL procedure from within SQL but not
vice-versa (that I've been able to find).
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l


MIDRANGE-L Info Page
lists.midrange.com
To unsubscribe from MIDRANGE-L, get a password reminder, or change your
subscription options enter your subscription email address:

or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.


MIDRANGE-L mailing list archive (midrange.com)
archive.midrange.com
midrange.com MIDRANGE-L mailing list archive


Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

http://g-ec2.images-amazon.com/images/G/01/social/api-
share/amazon_logo_500500._V323939215_.png

Amazon.com: Online Shopping for Electronics, Apparel, Computers, Books,
DVDs & more
amzn.to
Online shopping from the earth's biggest selection of books, magazines,
music, DVDs, videos, electronics, computers, software, apparel &
accessories, shoes, jewelry, tools & hardware, housewares, furniture,
sporting goods, beauty & personal care, broadband & dsl, gourmet food &
just about anything else.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD





As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.