vIf the user ID on the sending system exists on the destination system, an attempt

is made to create the spooled file on the output queue that is defined on the

Receive a Printer Job

command under that user ID.

If the requested output queue exists, the spooled file is placed in that output

queue. The user ID must have access to that output queue, or the OUTQ

┌──────┐
│ LPR
└──┬───┘
ø
┌──────────────────┐
│ Data and control │
│ file received on │
│ AS/400 │
└────────┬─────────┘
ø
┌────────────────────┐
│ Check control file │
for sending
user ID JOHN
└─────────┬──────────┘ ┌────────────────────┐
ø │Is *PUBLIC access
┌──────────────────────┐ │authority to │
│ Does user JOHN exist │No │QTMPLPD profile │ Yes
on the AS/400? ├──────Ê │*EXCLUDE │ ────────┐
└──────────┬───────────┘ └─────────┬──────────┘
│Yes │ │
ø │No │
┌─────────────────────┐ ┌──────────────────────┐ │
│ Receive file under │ Receive file under
│ user profile JOHN │ user profile QTMPLPD │
└──────────┬──────────┘ └──────────┬───────────┘ │
││
││
ø│
┌───────────────────────┐ │
│ Check the Receive │ Í───────────────┘
│ Printer Job command
│ for OUTQ value
│ (AS/400 LPR PRTQ
│ value)
└───────────────────────┘ │
││
ø│
┌──────────────────────────┐ │
│ No
Does OUTQ exist? ├─────┐
│(If no library specified, │
│then *LIBL is used)
└──────────┬───────────────┘ │
│ Yes
øø ø
┌──────────────────┐ ┌─────────────────────┐ ┌──────────────────┐
│ Send spooled file│ │Send spooled file to │ │ LPR denied; file │
to OUTQ │OUTQ QGPL/QPRINT not accepted
└────────┬─────────┘ └───────┬─────────────┘ └────────────┬─────┘
││ │
øø ø
┌────────────────────────────┐ ┌──────────���─────────────────┐
│ Successful return code │ Failing return code
│ sent to requesting system │ sent to requesting system
└────────────────────────────┘ └────────────────────────────┘

Figure 228. Flow for Determining Output Queue for a Spooled File

Chapter12. Line Printer Daemon (LPD) 371