Showing my ignorance of integrating Domino with CL programming, etc (I'm
more of a CL/RPG guy myself). but if Domino can use a command interface
would that not solve this problem? If the ERP system (or whatever system)
changes the parameter sizes you could simply change the parms in the CL
program to match the new sizes, change the command definition to pass the
parms to the CPP as expected by the program and then no changes would be
needed to the Domino interface (well unless there's something that needs
to be returned, etc from the "new" parameters. Just a thought...

Thanks,
Tommy Holden



From: rob@xxxxxxxxx
To: Lotus Domino on the iSeries / AS400 <domino400@xxxxxxxxxxxx>
Date: 01/06/2011 08:42 AM
Subject: Re: Domino calling an i program with mismatched parameters
kills the server.
Sent by:
domino400-bounces+tommy.holden=thompsonmachinery.com@xxxxxxxxxxxx



Are you suggesting that the first executable lines of the CL include a
global MONMSG, much like:
PGM (&PARM1 &PARM2)
DCL &PARM1 *CHAR 10
DCL &PARM2 *CHAR 10
MONMSG MSGID(CPD0000 CPF0000 MCH0000) EXEC(GOTO CMDLBL(ERRORHDLR))
/* Body of program here */
SNDMSG MSG(COOL) TOUSR(*REQUESTER)
GOTO END
ERRORHDLR:
CHGJOB LOG(4 0 *SECLVL) LOGCLPGM(*YES)
DSPJOBLOG OUTPUT(*PRINT)
DSPJOB OUTPUT(*PRINT)
DMPCLPGM
END:
ENDPGM

On a mismatched parameter would this even get to that executable line?
When I test it from the command line with different sizes it executes the
SNDMSG as if there was no error. I suspect the interface from Domino to
the i is more stringent. If I only send one parameter from the command
line it doesn't start the program. It aborts with: CPD0172 - Parameters
passed on CALL do not match those required. Never executes a line.


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.