Data Q

pts.
Tags:
CLP
RPGLE
I need to check whether there are any data found in a data Q. Is there any way to do that? Appreciate if you can provide sample executable codes for me to test it on. Thanks...

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi Jenny

There is source for a SHWDTAQ (Show Data Queue) command at http://home.midsouth.rr.com/xueli/Shwdtaq.txt which may help.

All the best

Jonathan

=======================================================

Use the <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/qmhqrdqd.htm”>Retrieve Data Queue Description (QMHQRDQD) API</a> to retrieve the current attributes of the data queue. Request format RDQD0100 — the number of queued messages will be at offset 72 of the returned data structure. It’s a 4-byte integer, so use 10i 0 (or 10u 0) as the RPG data definition. When the value is zero, there are no messages at the moment.

Tom

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • BigKat
    RCVDTAQ DTAQ(&DQ) ENTLEN(&LEN) ENTRY(&ENTRY) WAIT(&WAIT) IF COND(&ENTRY = ' ') THEN(GOTO CMDLBL(NOENT)) ENT: ...processing for when &ENTRY retrieved... GOTO CMDLBL(END) NOENT: ...processing for when &ENTRY not retrieved... END: ENDPGM
    8,350 pointsBadges:
    report
  • bvining
    A commercial product, the PowerCL eXtreme CL Data Queue command category includes both a Retrieve Data Queue Information (RTVDTAQXCL) command which, among other things, retrieves the current number of entries on a data queue and a Display Data Queue Entries (DSPDTAQXCL) command which displays the contents of a data queue interactively. Bruce Vining (one of the authors of PowerCL so I'm a bit biased)
    6,620 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following