nodejs-itoolkit icon indicating copy to clipboard operation
nodejs-itoolkit copied to clipboard

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

Open sagartyagi121 opened this issue 3 years ago • 1 comments

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

sagartyagi121 avatar Nov 15 '22 12:11 sagartyagi121

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'}'>`;
  } 

sagartyagi121 avatar Nov 15 '22 12:11 sagartyagi121