5250 display devices and device names
Why every 5250 session needs a display device, what QPADEV names are, and how to ask for a name.
An IBM i interactive job runs on a display device. A Telnet session uses a virtual device.
Automatic names
If the client does not ask for a name, the host creates a virtual device named QPADEV followed by four letters or digits, for example QPADEV0001. These are created automatically when the system value QAUTOVRT allows it. QAUTOVRT is the maximum number of devices that can be created.
Asking for a name
A TN5250E client can send a device name (up to 10 characters) at connect time. IBM's own Telnet client does the same with the RMTVRTDSP parameter. If the name is free the host creates and uses it.
Why use your own name:
- You can find your session in WRKACTJOB or the device list.
- Subsystems and work-station entries can route named devices to a different subsystem.
- A script or a monitor can look for the name.
Good names are short, upper case and unique, for example JSMITH01. Avoid names that start with QPADEV: the host uses those for the automatic ones.
"Device in use"
A name belongs to one session at a time. If you disconnect without signing off, the old job may still hold the device for a while. Connecting with the same name can fail until the old job ends. Either wait, sign off first, or use a different name. To find and free the old session, see 5250 device name already in use.
Printers
A 5250 printer session is also a device. TN5250E can start a printer device with a name. See Printing.