pjs.parm()
Â
This method is used for passing parameters by value with pjs.call().Â
Parameters
Value - The value to pass.Â
Config - A configuration object of the format used by pjs.define().Â
Or (alternative use)...
Field name - A String containing the name of a Profound.js field.
Return Value
An object that can be passed to pjs.call() to pass by value.
Examples
Call an IBM i Program with By-Value Parameter
const input = 123;
pjs.call("mypgm", pjs.parm(input, { type: "packed decimal", length: 7, decimals: 2 }));Â
Â
Call an IBM i Program with By-Value Parameter, Using a Field Name
pjs.define("input", {type: "packed decimal", length: 7, decimals: 2, initValue: 123});
pjs.call("mypgm", pjs.parm("input"));
Â
RPG Equivalent
PARM