+ Reply to Thread
Results 1 to 5 of 5

Thread: Retrive Data Queue Description (i.e. How many entries in queue)

  1. #1
    Guest.Visitor Guest

    Default Retrive Data Queue Description (i.e. How many entries in queue)

    Has anyone had any experience in writing a CL to see how many entries are in a Data Queue ? We have a *dtaq called ETEST in QGPL and it is used as a queue to hold information about reports to e-mail to users. We have a CL that monitors this queue for new entries and then takes that information and uses our e-mail program to send out the report. I would like to write a seperate CL to tell me how many entries are in this queue(and in a perfect world what the entries contain) at any given time...by me just typing in a command on the green screen. I have seen many examples of data queue manipulation on the IBM site and discussions here....but nothing that would seem to help me out. Any guidance or assistance would be appreciated greatly, Thanks. Jim Norbut

  2. #2
    Guest.Visitor Guest

    Default Retrive Data Queue Description (i.e. How many entries in queue)

    Jim, After calling the API QMHQRDQD (Retrieve DTAQ Description)you can define thefollowing lines: LENMSG: CHGVAR VAR(&MSGLEN) VALUE(%BIN(&RTNVAR 9 4)) /Message length LENKEY: CHGVAR VAR(&KEYLEN) VALUE(%BIN(&RTNVAR 13 4)) / Key data length NBRMSG: CHGVAR VAR(&NBRMSG) VALUE(%BIN(&RTNVAR 73 4)) / Number of nessages The &RTNVAR should be defines as *CHAR 80 The other variables should be defines as *DEC 5 0 Hope this answers your question. Regards, Carel Teijgeler

  3. #3
    Guest.Visitor Guest

    Default Retrive Data Queue Description (i.e. How many entries in queue)

    This can be done in CL ? I will have to see what I can write up and see if it works. If you have an example...that would be most appreciated. If not....I think I could give it a go. or is it an RPG program needed to be written. I am not verse in RPG...so if that's the case...I will have to forget it.

  4. #4
    Guest.Visitor Guest

    Default Retrive Data Queue Description (i.e. How many entries in queue)

    James, If you are interested I can send you a small number of commands dealing with DTAQs, among then a RTVDTAQD. Drop a line with your e-mail address and I send you a zipped SAVF on V3R2M0 owner QSYSOPR. Regards, Carel Teijgeler

  5. #5
    Guest.Visitor Guest

    Default Retrive Data Queue Description (i.e. How many entries in queue)

    That would be great. Thank you. jim.norbut@grubb-ellis.com

+ Reply to Thread

Similar Threads

  1. Data Queue
    By S.Mildenberger in forum General
    Replies: 5
    Last Post: 09-22-2004, 11:37 AM
  2. Display Data Queue Description
    By Guest.Visitor in forum RPG
    Replies: 9
    Last Post: 01-08-2004, 11:47 AM
  3. Data Queue/Job Queue/Out Queue
    By Guest.Visitor in forum RPG
    Replies: 2
    Last Post: 05-21-2003, 08:17 AM
  4. Data Queue use
    By Guest.Visitor in forum Application Software
    Replies: 1
    Last Post: 11-18-1999, 11:43 AM
  5. Read Output Queue 'entries'?
    By Guest.Visitor in forum Programming
    Replies: 1
    Last Post: 05-20-1997, 02:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts