Not sure if this would work for your purposes, but you can call any Qsh/Pase/Bash script and capture stdout and then consume from RPG.
QShell on i
https://github.com/richardschoen/qshoni
Works from CL, RPG or COBOL.
Regards,
Richard Schoen
Web:
http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
------------------------------
message: 2
date: Sun, 3 Oct 2021 10:37:58 +1100
from: frank kolmann <frank.kolmann@xxxxxxxxx>
subject: Re: How to use stdin/stdout/stderr from ILE RPG?
Hi Patrik
I dont have stdin/stdout/stderr but I have an RPG program that uses Unix Apis that can open/read any file.
It is not complete because I got stuck on null capable fields. One needs a indicator DS for the null field maps that matches the null capable fields.
On 02/10/2021 6:18 am, Patrik Schindler wrote:
Hello,
I took a while to search the net how I can use stdin/stdout/stderr from within ILE RPG, but I failed to find something relevant.
Does anybody have some hints?
I want to implement a simple and highly specialized (for Spamassassin) database I/O manager running from within inetd instead of SQL, which is just too slow on my 150.
:wq! PoC
As an Amazon Associate we earn from qualifying purchases.