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



I have a need to set the iseries library list based on a company parm
passed to a stored procedure.

I have a cl program that can do this work, but I don't know how to call a
cl program from within my sql stored procedure.

can anybody give me some guide on this or point me in the correct
direction.

Below is part of the code, and I want to call cl program GET005CL with the
parm cocd, which is input to the procedure.

I'm not finding any code examples so could use some help.

Appreciate any help.

CREATE PROCEDURE DRLLIB/DRL005SP (
IN COCD CHAR(2) ,
IN LNAM CHAR(35),
IN FNAM CHAR(25) )

CALL GET005CL (:COCD)

BEGIN

DECLARE WRKDAT NUMERIC (8,0);
DECLARE WKPATH CHAR;
SET WRKDAT = (YEAR(CURRENT DATE)*10000) + (MONTH(CURRENT
DATE)*100) + (DAY(CURRENT DATE));





Darrell Lee
Information Technology
Extension 17127

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.