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

iDataQueue - receiveFromDataQueue - I need a loop and a wait

Open RainerRoss opened this issue 4 years ago • 0 comments

in a formerly version I have this statement to loop the results of the DataQueue.

while (data !== '*end') {
    data = dq.receiveFromDataQueue('MYQUEUE', 'MYLIB', 5000, -1);
    console.log('data: ' + data);
}

To have the wait with -1 I modified the following code

/QOpenSys/QIBM/ProdData/OPS/Node6/os400/xstoolkit/lib/idataq.js

line 70: iDataQueue.prototype.receiveFromDataQueue = function(name, lib, length, wait, cb) {
line 76: pgm.addParam(wait, "5p0");

currently I need this function - can you help me please

RainerRoss avatar Jul 25 '21 16:07 RainerRoss