Calling IBM i Commands

 

Profound.js provides built-in capabilities to call any IBM i command through the use of the pjs.runCommand() API.

The command can be a batch process or an interactive command with a user interface. The output from green-screen commands is automatically transformed into HTML5. This capability is provided by Genie.

For example, the following line of code within your Node.js module will display the system's Work with Spooled Files interface.

pjs.runCommand("WRKSPLF");

The call to a command will maintain the standard IBM i call stack. Profound.js will wait for the command to complete without blocking the Node.js event loop. This capability is provided through Fibers.

Â