Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Program Calls

Profound.js allows you to call any existing IBM i programs, including programs written in CL, RPG, COBOL, and C. You can call even call interactive programs, including 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.

The calls can will maintain a standard IBM i call stack. You can code these calls using a familiar top-down business programming paradigm, without having to code JavaScript asynchronous callbacks. Profound.js can wait for the programs to complete (even when a user interface is involved) without blocking the Node.js event loop. The call is then gracefully returned to Node.js processing. This capability is provided through Fibers.

Calls to programs are made using the pjs.call() API.

Code Block
languagejavascript
pjs.call("PROGRAM");

 

Parameters

Support for by reference parameters, meaning the called program can change the values