This method calls a Profound.js module or an IBM i program.
Parameters
- (String) Profound.js module or IBM i program name. The name can be qualified with a directory (Profound.js module) or library (IBM i). If not qualified either the pathlist or IBM i job library list will be used to resolve the name. If a Profound.js module of the given name is not found on the local file system and the Profound.js Connector is configured, then the name is assumed to be an IBM i program name.
--or--
(Function) Function exported from a module required with profoundjs.require().
- (Variable, optional) - One or more parameters. Parameters can be either primitive JavaScript values (i.e. String, Number, etc.) or parameter objects returned by pjs.parm() and pjs.refParm(). Field names can also be passed; these will automatically be wrapped by pjs.refParm() internally. pjs.parm() or pjs.refParm() must be used for all parameters to IBM i programs.
...