Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iDataQueue - receiveFromDataQueue - I need a loop and a wait #329

Open
RainerRoss opened this issue Jul 25, 2021 · 0 comments
Open

iDataQueue - receiveFromDataQueue - I need a loop and a wait #329

RainerRoss opened this issue Jul 25, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@RainerRoss
Copy link

RainerRoss commented Jul 25, 2021

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 RainerRoss added the enhancement New feature or request label Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant