+ Reply to Thread
Results 1 to 5 of 5

Thread: retrieving outq info for a writer

  1. #1
    Guest.Visitor Guest

    Default retrieving outq info for a writer

    When I do a WRKWTR I can see what outq the writer is connected to. How can I bring that information into a CL program? Thanks for your time, Bryan

  2. Default retrieving outq info for a writer

    If you have the TAA Productivity Tools you could use the RTVWTRSTS command.

  3. #3

    Default retrieving outq info for a writer

    Try this:
     DCL VAR(&RCVVAR) TYPE(*CHAR) LEN(289) DCL VAR(&OUTQ) TYPE(*CHAR) LEN(10) CHGVAR VAR(&RCVVAR) VALUE(X'0000000000000121') CALL PGM(QSPRWTRI) PARM(&RCVVAR X'00000121' + 'WTRI0100' '{your printer name here}' X'00000000') CHGVAR VAR(&OUTQ) VALUE(%SST(&RCVVAR 87 10)) 
    Michael

  4. #4
    Guest.Visitor Guest

    Default retrieving outq info for a writer

    Thank you very much for your time Michael. I will try that out As soon as possible.

  5. #5

    Default retrieving outq info for a writer

    No probs.

+ Reply to Thread

Similar Threads

  1. API for remote writer status
    By dchristie in forum CL
    Replies: 2
    Last Post: 05-06-2004, 10:22 AM
  2. Report Writer
    By whippet_master@mac.com in forum COBOL
    Replies: 1
    Last Post: 04-30-2004, 04:33 PM
  3. Retrieving COMMIT info about another job
    By Guest.Visitor in forum General
    Replies: 0
    Last Post: 09-22-2003, 10:55 PM
  4. Assigning the outq to a remote writer
    By Guest.Visitor in forum Document Management
    Replies: 3
    Last Post: 01-14-2003, 10:28 AM
  5. GUI Report Writer for JDE
    By Guest.Visitor in forum Application Software
    Replies: 4
    Last Post: 07-19-2000, 03:32 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