Reorganize OUTQ

65 pts.
Tags:
OUTQ management
How do I organize files of output queue. Please help.

Answer Wiki

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

The simple answer would be to use WRKOUTQ to *print, then construct a subfile view over the result to allow you to interrogate a given outq.

Bear in mind though, that such processing will be permanently out of date. Doubtless you could speed things up with the appropriate API, but it isn’t an area I’ve ever felt needed investigation.

Discuss This Question: 10  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
  • TomLiotta
    Organizing files on an output queue isn't making much sense. Can you describe the result that you want? Why do you think the files aren't organized in the first place? Tom
    125,585 pointsBadges:
    report
  • deepu9321
    What do you actually meant for 'Organize' in this case? Pradeep.
    3,870 pointsBadges:
    report
  • HS
    I want to organize the outq files according to records.
    65 pointsBadges:
    report
  • philpl1jb
    HS Spool Files are reported in the number of pages, not lines or records. I don't think you can get what you want without programming. Even getting a list of these ordeered by pages takes a bit of work. Phil
    50,415 pointsBadges:
    report
  • philpl1jb
    On an AS/400?
    50,415 pointsBadges:
    report
  • DanD
    Everyone is a little baffled at your question. Tom may have a better analogy than this, but I think of an outq as a physical file where each spooled file is a member, or at least a pointer to a member. The organization is determined by the system on spooled file status and arrival sequence. If you are trying to have spooled file ordered by report type so different users can find what they need, you would probably accomplish that having the different reports or types or whatever your trying to "organize" sent to different outqueues by the programs that generate them.
    2,865 pointsBadges:
    report
  • TomLiotta
    As Phil says, spooled files are generally reported by number of pages rather than number of records. Depending on how a printer file is defined, an entire page might be defined as a single record or might contain many records. I haven't done it, but I suppose that a single record could even include multiple pages. In any case, since iSeries Navigator already lets you sort by number of pages, it seems pointless to try to sort by "number of records". You could certainly create programming to do it. You'd have to create screens for the display as well as the programming that retrieved "number of records" from each output queue entry and then sorted the results. But it seems kind of pointless. If this needed to be done, it might make more sense to do it by spooled file size than by "number of records". Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    I think of an outq as a physical file where each spooled file is a member, or at least a pointer to a member. I don't have a better analogy. An output queue is more like a list of pointers to members. The output queue doesn't actually hold any files. It's just a kind of index object that holds entries with attributes of each spooled file plus a pointer to where the spooled file really is. There would be a lot more data movement when a spooled file (entry) is moved from one output queue to another if the queues actually held the spooled data. As it is, about the only thing that moves between queues is the index entry. A DMPOBJ command (over a queue with only a few entries) shows most of what is useful. Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    If you really want to "reorganize", I suppose you could call the List Spooled Files (QUSLSPL) API perhaps using format SPLF0300. Sort the user space by spooled file size, then read the entries one at a time. If you create a temporary *OUTQ, you could move each entry to the new queue with CHGSPLFA. Since they're sorted, the entries should get queued in the new order. Either display the new outq or use the API a second time to loop through again, putting them back where they started but in the new sequence. Displaying the new outq might not be a good choice -- something needs to be done with the files. As for what you would do about different priorities or statuses, that would be up to you to decide. Tom
    125,585 pointsBadges:
    report
  • Splat
    Do you actually need to re-order the contents of the queue or do you just need to see the entries in a particular sequence?
    7,405 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