Open sagartyagi121 opened 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'}'>`;
}
https://github.com/IBM/nodejs-itoolkit/blob/3874e6c06dee893a42f4a7ff2e6cfbf312322143/lib/ProgramCall.js#L40