Profound.js allows you to call any existing IBM i programs, including programs written in CL, RPG, COBOL, and C. You can even call interactive programs, such as programs that use a green-screen interface or programs that use RPG Open Access to display a Rich User Interface. When a green-screen program is called, the green-screen interface is converted to HTML5 on-the-fly. This capability is provided by Genie.
Calls to programs are made using the pjs.call() API. For example:
Passing parameters is very simple with Profound.js because of support for Strongly typed fields. You can simply define a parameter field using the IBM i data type expected by the program you are calling. For example:
Parameters can be passed by reference (both input and output), meaning that the called program can change the values of fields defined within your Node.js code.