The following examples show how you can use the LPQ command.
1. This command displays all entries in the LPS40_QUE queue.
$ LPQ LPS40_QUE
2. This command displays information about job 4 in the print
queue named OFFICE_QUE.
$ LPQ OFFICE_QUE /ENTRY=4
3. This command displays information about jobs 1, 2, and 3 in
print queue PEACE_Q.
$ LPQ PEACE_Q /ENTRY=(1,2,3)
4. This command displays information about user NELSON's jobs in
the print queue FRONT_Q.
$ LPQ FRONT_Q /USER=NELSON