Node.js reading 'stdout' of CGI pgm (QtmhWrStout)

Issue #7 closed
Sebastian Misiewicz created an issue

Hi

I have a RPG program which sends data to 'stdout' via QtmhWrStout API (which is a part of QZHBCGI). So the data flow is

Web browser <-> HTTP Server <-> QZHBCGI ( my RPG program)

my intention is to get rid of HTTP server and use Node.js instead.

Web browser <-> Node.js <-> ???????? ( my RPG program)

I have no idea how to interact with stdout/stdin from Node.js I've tried iSh with system command, iPgm with 'regular call'. No matter how I call my program each time I got QPRINT with content. I've tried also to add QIBM_USE_DESCRIPTOR_STDIO=Y to Qp2RunPase - no effect.

Any idea how to interact with ILE 'stdout'/'stdin' On the other hand QtmhPutEnv (part of QZHBCGI) works ok. Regards Sebastian

Comments (2)

  1. Log in to comment