Versions Compared

Key

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


Note
titleContent Freeze

As of July 25th, 2023, there is a content freeze on this page.

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 greengreen-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.

Code Block
languagejavascriptjs
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.