× 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'm pretty sure on V5R2 you can only use programs with CREATE PROCEDURE.
Starting with V5R3 you can also use service programs.
BTW, you can call regular programs via sql CALL, but some restrictions apply
(i.e. you can't pass NULL in).

Elvis

-----Original Message-----
 Subject: RE: Accessing Service Programs from .NET

We have V5R2 and no, I'm not certain about the OPM connection.  I just know
I haven't been able to make the service program work.  Perhaps I should
include additional information about that. 

I used the following to create the stored procedure:
CREATE PROCEDURE MYLIB/APROCEDURE
  (IN Parm1 CHAR (10),
   IN Parm2 CHAR (1), 
   OUT Parm3 CHAR (10),
   OUT Parm4 CHAR (7),
   OUT Parm5 CHAR (100))
RESULT SETS 1 LANGUAGE RPGLE 
SPECIFIC APROCEDURE 
NOT DETERMINISTIC NO SQL 
EXTERNAL NAME MYLIB/SVCPGM
PARAMETER STYLE GENERAL                            

To test this, I created an SQLRPGLE program with the following SQL
statement:
CALL MYLIB/APROCEDURE 
  (:Parm1, :Parm2, :Parm3, :Parm4, 
   :Parm5)

When I execute the program, I get the following message:
"External program SVCPGM in MYLIB not found."

I discovered something in the archives about SQL interpreting literals as
VARCHAR, but all my parameters are fields with the same attributes as
defined in the CREATE PROCEDURE statement.

Donald R. Fisher, III




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.