Greg, here is another version of the SQL to list output queue's in detail
showing all of the fields in qsys2.outq_dtl plus a column that counts the rows
of output:
The "where" and "order by" can be adjusted as needed'
Select Row_Number() over (Order by OUTPUT_QUEUE_NAME) as "Row #",
OUTPUT_QUEUE_NAME, OUTPUT_QUEUE_LIBRARY_NAME, NUMBER_OF_FILES, NUMBER_OF_WRITERS,
WRITERS_TO_AUTOSTART, PRINTER_DEVICE_NAME, ORDER_OF_FILES, DISPLAY_ANY_FILE,
JOB_SEPARATORS, MAXIMUM_PAGES, MAXIMUM_PAGES_STARTING_TIME, MAXIMUM_PAGES_ENDING_TIME,
OPERATOR_CONTROLLED, AUTHORITY_TO_CHECK, DATA_QUEUE_LIBRARY, DATA_QUEUE_NAME,
OUTPUT_QUEUE_STATUS, WRITER_JOB_NAME, WRITER_JOB_STATUS, WRITER_TYPE, SPOOLED_FILE_ASP_ATTRIBUTE,
SPOOLED_FILE_ASP_NUMBER, SPOOLED_FILE_ASPGRP, TEXT_DESCRIPTION, MESSAGE_QUEUE_LIBRARY,
MESSAGE_QUEUE_NAME, HOST_PRINT_TRANSFORM, IMAGE_CONFIGURATION_NAME, MANUFACTURER_TYPE_AND_MODEL,
WORKSTATION_CUSTOMIZING_OBJECT_LIBRARY, WORKSTATION_CUSTOMIZING_OBJECT_NAME, NETWORK_CONNECTION_TYPE,
DESTINATION_TYPE, REMOTE_SYSTEM_NAME, REMOTE_PRINTER_QUEUE, DESTINATION_OPTIONS, USER_DRIVER_PROGRAM_LIBRARY,
USER_DRIVER_PROGRAM_NAME, USER_DEFINED_OBJECT_LIBRARY, USER_DEFINED_OBJECT_NAME, USER_DEFINED_OBJECT_TYPE,
DATA_TRANSFORM_PROGRAM_LIBRARY, DATA_TRANSFORM_PROGRAM_NAME, USER_DEFINED_OPTION_1, USER_DEFINED_OPTION_2,
USER_DEFINED_OPTION_3, USER_DEFINED_OPTION_4, USER_DEFINED_DATA, LDAP_PUBLISHING_STATUS, FORMS_CONTROL_BUFFER,
VM_MVS_CLASS
from qsys2.outq_dtl
--- Where
--- Order by
Very Respectfully,
Michael Mayer
IBM i Support / System Admin.
IT Operations.
The Florida Bar
651 E. Jefferson St
Tallahassee, Florida 32399-2300
mmayer@xxxxxxxxxxxxxx
https://www.floridabar.org
Office: 850.561.5761
Cell: 518.641.8906
Please note: Florida has very broad public records laws. Many written communications to or from The Florida Bar regarding Bar business may be considered public records, which must be made available to anyone upon request. Your e-mail communications may therefore be subject to public disclosure.
-----Original Message-----
From: Mayer, Michael
Sent: Tuesday, August 4, 2020 2:03 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: Subject: List of Output Queues
Very Respectfully,
Michael Mayer
IBM i Support / System Admin.
IT Operations.
The Florida Bar
651 E. Jefferson St
Tallahassee, Florida 32399-2300
mmayer@xxxxxxxxxxxxxx
https://www.floridabar.org
Office: 850.561.5761
Cell: 518.641.8906
Please note: Florida has very broad public records laws. Many written communications to or from The Florida Bar regarding Bar business may be considered public records, which must be made available to anyone upon request. Your e-mail communications may therefore be subject to public disclosure.
-----Original Message-----
From: Mayer, Michael
Sent: Tuesday, August 4, 2020 1:58 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: RE: MIDRANGE-L Digest, Vol 19, Issue 1228
Greg, this should get it done for you. The "where by" and "order by" you can adjust as needed. you can adjust
Select * from qsys2.outq_dtl
--- Where
--- Order by
Also, in ACS "Run SQL scripts, highlight the *, hit "ctl key + space bar" and the field list will be displayed.
Very Respectfully,
Michael Mayer
IBM i Support / System Admin.
IT Operations.
The Florida Bar
651 E. Jefferson St
Tallahassee, Florida 32399-2300
mmayer@xxxxxxxxxxxxxx
https://www.floridabar.org
Office: 850.561.5761
Cell: 518.641.8906
message: 4
date: Tue, 4 Aug 2020 16:10:10 +0000
from: Greg Wilburn <gwilburn@xxxxxxxxxxxxxxxxxxxxxxx>
subject: List of Output Queues
Is there a table I can access to get a list of output queues?
I'd like to create an SQL view containing a list of printer queues.
As an Amazon Associate we earn from qualifying purchases.