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



Steve, that statement is patently untrue. One of our products is a *SRVPGM, and
we have several examples of how to use it. Here is one:

At the very beginning you put the following extension:

PROCESS NOMONOPRC.
IDENTIFICATION DIVISION.

That comes before PROGRAM-ID. The NOMONOPRC does something with whether you can
use underscores - I'm not a COBOL developer but found this, so that we did not
need a second *SRVPGM for just the COBOL calls.

To call a procedure in a *SRVPGM, you do something like this

CALL PROCEDURE "SQL_RUNSQLSEL"
USING BY VALUE SQL-SOCKET-B
SQL-SELECT-V
RETURNING SQL-RETURN-B.

That even includes a variable-length variable that I named SQL-SELECT-V - those
are not as nice to work with as in RPG - more like C/C++ - but so it goes.

We have possibly 40 procedures in that *SRVPGM.

So you can't stand on that floor with no joists holding you up.

Vern

-------------- Original message --------------
From: "Steve Richter" stephenrichter@xxxxxxxxx

-snip-

The limitiation that I will stand by and that Michael should be aware
of is you effectively cant call into a SRVPGM from COBOL. Basically,
COBOL does not work with ILE. ( COBOL only sees one max 10 char
procedure in the SRVPGM ) The COBOL code I worked with had been
"modernized" from mainframe COBOL to call external programs and use
embedded SQL.

-Steve

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.