I think this is also covered in one of the PRINTER Redbooks...or in the
AS/400 Guide to Printers and Printing manual....

Had to dig through this back in fax/400 days...

-----

On Fri, 29 Mar 2002 Todd.Sabella@alltel.com wrote:

> I've never done it, but I guess you can use a data queue...
>
> >From the Create Output Queue (CRTOUTQ) help...
>
> Data queue (DTAQ) - Help
>
> Specifies the name of the data queue associated with the output queue.
> Entries are logged in the data queue when spooled files are in ready
> (RDY) status on the output queue.  A user program can determine when a
> spooled file is available on an output queue using the Receive Data
> Queue API (QRCVDTAQ) to receive information from a data queue.
>
> Each time a spooled file on the output queue reaches RDY status, an
> entry is sent to the data queue.  A spooled file can have several
> changes in status (for example, RDY to held (HLD) to release (RLS) to
> RDY again) before it is taken off the output queue.  These status
> changes result in entries in the data queue for a spooled file each time
> the spooled file goes to RDY status.
>
> When the data queue is created using the Create Data Queue (CRTDTAQ)
> command, the maximum message length (MAXLEN parameter) value should be
> at least 128 and the sequence (SEQ parameter) value should be *FIFO or
> *LIFO.  More information about data queues on output queues is in the
> Printer Device Programming book, SC41-5713.
>
> hope this helps...
> Todd
>
>
> -----Original Message-----
> From: Wills, Mike N. (TC) [mailto:MNWills@taylorcorp.com]
> Sent: Friday, March 29, 2002 11:50 AM
> To: Midrange - Midrange-L (E-mail)
> Subject: Monitor outq for spool files
>
>
> Here is an interesting question (for me at least). Is there a way to
> monitor
> the OUTQ to see if one or more spool files are in there and then kick
> off my
> program that will process it?
>
> Mike Wills
> IT Corporate Support
> Taylor Corporation
> mnwills@taylorcorp.com
> Phone: (507) 386-3187
>
> _______________________________________________
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
> To post a message email: MIDRANGE-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
> or email: MIDRANGE-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.
>



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.