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



Thanks Buck. That, in combination with our Node.js scripts, might work. Adding it to the list.

Thanks,

Kelly Cookson
Senior Software Engineer II
Dot Foods, Inc.
217-773-4486 ext. 12676
www.dotfoods.com<http://www.dotfoods.com/>

From: WEB400 <web400-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Buck Calabro
Sent: Friday, July 12, 2019 10:30 AM
To: web400@xxxxxxxxxxxxxxxxxx
Subject: [EXTERNAL] Re: [WEB400] Consuming RESTful APIs from RPG/COBOL ILE

On 7/12/2019 3:02 AM, Kelly Cookson wrote:

We know how to use Node.js to *expose* RESTful APIs on the IBM i. However, if we want to consume an API from a COBOL or CL program, we only know of one way to call a Node.js script: use a QShell command. The QShell command does not appear to have a way to return data from the Node.js script. We can’t get the data from the API we want to consume. We thought about having the Node.js script consume the API and write the data into a database file or data queue, which would then be available for processing by the COBOL or CL program. But…ugh! It just seems like a clunky workaround.

It is clunky. There is no CALL/PARM interface between RPG/Cobol/CL and
the PASE open source languages. That said, Scott Klement has a utility
called UNIXCMD that makes these cross-PASE interactions much easier.
Basically, it uses standard pipes to connect the two end points. It's up
to both sides to format/understand the text passed down the pipes.

--
--buck

http://wiki.midrange.com<http://wiki.midrange.com>
Your updates make it better!



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.