It is possible to pass parameters to your Profound.js modules from the PJSCALL command or from the IBM i call command if calling a proxy.
In order for your modules to accept the parameters, you will need to define the module to have input parameters. In addition, you would need to set the refParm property to the variables that are being passed in.
...
Code Block |
---|
module.exports.run = myModule; module.exports.parms = [ { type: “char”, length: 20 }, { type: “packed”, length: 7, decimals:2 } ]; |
After defining your module with the above, you should be able to pass the parameters to your module from the PJSCALL command or on the calls to a proxy program.