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



<snip>
are
you saying it's also possible to get the results of step 'b' back up to
the OPM RPG program, despite the fact that step 'a' is calling out to a
program written in another language?
<snip>

I believe what he was referring too, was to write an ILE RPG program to 
accept the parms from the OPM program, use the ILE RPG to call your C 
api's that will solve the difference in language calls because you can 
call an ILE RPG program from an RPG OPM (does anyone else think Opium when 
you say that lol) and then use the ILE RPG as a 'bridge' between the two. 
But personally, I'd convert the OPM program to ILE.

Ron Power
Programmer
Information Services
City Of St. John's, NL
P.O. Box 908
St. John's, NL
A1C 5M2
Tel: 709-576-8132
Email: rpower@xxxxxxxxxx
Website: http://www.stjohns.ca/
___________________________________________________________________________
Success is going from failure to failure without a loss of enthusiasm. - 
Sir Winston Churchill




jared <jhunter@xxxxxxxxxxxx> 
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
14/09/2004 11:20 PM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
cc
C400 List <c400-l@xxxxxxxxxxxx>
Subject
Re: calling C from OPM RPG






[snip]
> The one thing that OPM programs can do is call other programs -- both 
ILE
> and OPM programs can be called.  Therefore, it's possible to write an
> interface that you could call from an OPM application.

is this an accurate picture of what you're suggesting below?

OPM RPG <-a-> ILE C wrapper program <-b-> ILE C API

> Assuming that by "C APIs" you mean ILE C, you can write an interface in
> any ILE language that acts as a program and accepts parameters from an 
OPM
> legacy program. It can call the API, and return the results in the same
> set of parameters.

Clearly ILE allows in/out parameter passing in step 'b' (a procedure call
to a function inside a bound SRVPGM, say).  (Not to be obtuse, but) are
you saying it's also possible to get the results of step 'b' back up to
the OPM RPG program, despite the fact that step 'a' is calling out to a
program written in another language?

> Though, personally, I'd be inclined to convince your customer to join 
the
> modern world.

That's my current plan.  It'd be nice to know there's a possible
alternative though, in case they're overly resistant to progress. :)

Thanks for the reply!

/j

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




This e-mail communication and accompanying documents is intended only for the 
individual or entity to which it is addressed and may contain information that 
is confidential, privileged or exempt from disclosure under applicable law.  
Any use of this information by individuals or entities other than the intended 
recipient is strictly prohibited.  If you have received this in error, please 
notify the sender and delete all the copies (electronic or otherwise) 
immediately.

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.