|
I haven't used Query/400 in a really, really long time. Probably
close to 10 years.
Makes me wonder why it was done this way. It seems to validate to
a device description list. Internally, it must be using the
device description to come up with an outq name that it uses to
override its own print file. Why couldn't they validate to an
outq list? The interface does allow SPOOL(*NO) which would
require a device description, but that could be handled
conditionally.
If you say PRTDEV(*PRINT), it uses the OUTQ of your job (the help
text says something entirely misleading). I have DKIMMEL
specified as the job OUTQ and query puts the output there even
though there is no DKIMMEL device description on my system. So if
you have your jobd set up right, there's no need to have a dummy
device description. You can also do a CHGJOB OUTQ(SOMEOUTQ) and
the output will go to SOMEOUTQ if the query is set up with
PRTDEV(*PRINT).
Rob wrote:
Have you ever used Query/400? So, unless they want to wrap every
query they use with a program they have to specify a device.
Screen is pretty basic:
Printer . . . . . . . . . *PRINT
<<SNIP>>
There is no way to specify output queue unless - You use wrapper
programs - You use a device associated with that output queue.
Dan Kimmel" wrote:
I don't see any reason for having a printer device description you're never going to use. That is, a dummy printer device.
The query doesn't reference a printer, it references a print file. The printer file names an outq. The outq is attached to
the printer device description by the print writer.
Goes like this:
Program names a print file. Print file may be overridden.
Print file names an outq. Outq is attached to a printer
device description by a print writer.
The only reason to have a reference to an outq in a printer device description is autostart. QSTRUP goes through the list
of printer device descriptions looking for ones with autostart.
It does a STRPRTWTR for each of those using the defaults, which
is outq(*devd).
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.