Jim,
Sorry, no go yet. I just got a chance to try a number of variations on
this theme and I'm still getting that MCH3401 looking for a *PGM object.
Thanks for the ideas, guess I'll have to keep poking around.
Rich Loeber
Kisco Information Systems
http://www.kisco.com
--------------------------------------------------------------------------
Jim Essinger wrote:
Rich,
From the ILE COBOL Reference for V5R4 (SC09-2539-05) found at the
Information Center - IBM:
"If the linkage is to an ILE procedure, then literal-1 must be
nonnumeric and at most 256 characters long. Depending on the compiler
option *MONOPRC, literal-1 might need to be uppercase and conform to
the rules for formation of program-names. The literal must specify the
program-name of the called subprogram"
I would think that;
CALL "programName" LINKAGE TYPE PROCEDURE
would do what you need. Check that compiler option to make sure it is
set correctly.
Jim
On Fri, Sep 19, 2008 at 7:53 AM, Rich Loeber <rich@xxxxxxxxx> wrote:
Hello Cobol fans .... I'm dabbling today (for a client) in an ILE program
that needs to call an ILE procedure. It is a simple call passing a few
parameters. The ILE procedure is in a service program and the procedure
name is 11 characters in length. I'm using the "CALL PROCEDURE" command
to call it, but whenever I run it, it drops the last character from the
procedure name and tries to call a program. Not finding it, it fails on
an MCH3401. The service program is specified in a binding directory that
is included when the program is compiled.
I'm pretty green with ILE COBOL .... I know I'm missing something but the
manuals that I have are somewhat less than helpful.
Any suggestions?
Rich Loeber
Kisco Information Systems
http://www.kisco.com
As an Amazon Associate we earn from qualifying purchases.