Running your latest release 2.0.12 with node v20.16 on z/OS.
This code has been working fine with only this single issue (one time failed). Ran a 2nd time and worked so sounds performance related.
memb = await za.downloadDataset(dsn + '(' + ent.name + ')')
mems = memb.toString()
mcnt = mems.match(/\n/g).length
One time got this error. Rerunning with same input works fine.
mcnt = mems.match(/\n/g).length
¬
TypeError: Cannot read properties of null (reading 'length')
at main (/XSYS/u/z1234567/genxlsx.js:230:31)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
thanks,
Andrew