device and model negotiated. This is true only for auto-created (QPADEVnnn)
virtual devices. Typically, the auto-created virtual device will use the AS/400
system values for keyboard type, character set, and code page. Optionally, these
display device attributes may be more specifically defined through the exit
program or device specified client subnegotiation. Devices can also be selected
via the exit program interface as opposed to being negotiated.
Step 6—3270—Defining Workstations to Subsystems
When you use Telnet to sign-on to an AS/400 server, the sign-on screen may not
be displayed on your workstation. Before a user can sign on to the AS/400 server,
the workstation must be defined to the subsystem. If the workstation has not been
defined to the subsystem, you need to add a workstation entry to the subsystem
description under which you want your job to run on the AS/400 server. The
workstation in this case is the virtual display device automatically created by the
Telnet server (QPADEVxxxx). The workstation name or the workstation type must
be specified in the subsystem description on the AS/400 server. Use the Display
Subsystem Description (DSPSBSD) command to see the workstation entries
defined to a subsystem. (This only applies to display devices. Printer devices
typically run in the QSPL subsystem.) The following command can be used to add
all workstation types to a subsystem named QINTER:
ADDWSE SBSD(QINTER) WRKSTNTYPE(*ALL)
Note: The Add Work Station Entry (ADDWSE) command can be done when the
subsystem is active. However, the changes may or may not take effect
immediately. You may need to end and restart the subsystem.
Step 7—3270—Activating the QSYSWRK Subsystem
The QSYSWRK subsystem must be active. Use the Work with Subsystem
(WRKSBS) command to display the status of the subsystem.
The Telnet server must also be started. The interactive subsystem, QINTER, which
is used in previous examples in this chapter, needs to be started to run interactive
jobs for Telnet sessions. The spooling subsystem (QSPL) needs to be active to run
printer pass-through sessions.
Step 8—3270—Creating User Profiles for Telnet Users
At the server system, create one or more user profiles for Telnet users from other
systems. The default user profile is *SYS. The following example shows a sample
user profile:
CRTUSRPRF USRPRF(CLERK1)
PASSWORD(unique-password)
JOBD(CLERKLIB/CLERKL1)
TEXT('User profile Clerks Group 1')
Step 9—3270—Checking the QKBDTYPE System Value
When the AS/400 Telnet server automatically creates virtual display devices, it uses
the QKBDTYPE system value to determine the keyboard type for the virtual device.
If the initial creation of the virtual device fails using the QKBDTYPE system value,
the Telnet server attempts to create the device again, using a keyboard type value
of USB. If the second attempt to create the virtual display device fails using the
value of USB, then a message (CPF87D7) indicating that the virtual device cannot
be automatically selected is sent to the system operator message queue.
Chapter 6. Telnet Server 191