IBM / nodejs-itoolkit

A JavaScript (Node.js) library for communicating with IBM i
MIT License
43 stars 37 forks source link

Add changes to allow mode=OPM|ILE to be passed on to xmlservice from itoolkit #362

Open sagartyagi121 opened 1 year ago

sagartyagi121 commented 1 year ago

https://github.com/IBM/nodejs-itoolkit/blob/3874e6c06dee893a42f4a7ff2e6cfbf312322143/lib/ProgramCall.js#L40

sagartyagi121 commented 1 year ago

Possible change

  constructor(program, options = {}) {
    this.xml = `<pgm name='${program}'`;
    if (options.lib) this.xml += ` lib='${options.lib}'`;
    if (options.func) this.xml += ` func='${options.func}'`;
    if (options.mode) this.xml += ` mode='${options.mode}'`;
    this.xml += ` error='${options.error || 'fast'}'>`;
  }