Skip to content

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

@RainerRoss

Description

@RainerRoss

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions