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



Hi everybody,
Thanks for your responses.

I am Java programmer and I don't know how to invoke the C routine inside a service program.
Do you think one can warp the C program with CL program, so I can call the CL program instead of the C program?
(The C program is used by other applications, so I can't make any change on it).

Regards,
Tomer S.



-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of David Gibbs
Sent: Wednesday, December 28, 2011 5:15 PM
To: Java Programming on and around the IBM i
Subject: Re: FW: Using PCML from Java to Call C/400 Program

On 12/28/2011 8:34 AM, Joe Pluta wrote:
Even more problematic is that AFAIK C parameters are not
bidirectional.

Isn't argv is an array of pointers ... so they are, by definition, bidirectional ... if you pass in pointer parameter ... and change the contents of that memory ... the values are changed.

And, I think, PCML passes everything by reference.

Hmm ... maybe it would be better to invoke the C routine inside a service program ... so that the QZRUCLSP api will be used?

Back in the day at SSA we had to create our own parameter passing
technique. It used a stream file to pass parameters between the two
programs.

I don't think the same remote program invocation mechanism existed back then.

Ugh. The flashbacks! THE FLASHBACKS!!!!!

Aaarrrgggg! PSSD! Post SSA Stress Disorder ... I suffer from it too.

<grin/>

david




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.