How to set up 3270 device emulation to AS/400 (145954)



The information in this article applies to:

  • Microsoft SNA Server 4.0
  • Microsoft SNA Server 4.0 SP4
  • Microsoft Host Integration Server 2000
  • Microsoft Host Integration Server 2000 SP1

This article was previously published under Q145954

SUMMARY

5250 device emulation is recommended for initiating interactive terminal sessions to an AS/400. However, it is possible for an AS/400 to communicate through a 3270 data stream.

This article describes how to configure an SNA Server and an AS/400 to allow 3270 device emulators to initiate a terminal session.

MORE INFORMATION

Before you configure an SNA Server and an AS/400, disable the auto-configuration option on the AS/400. If this option is not disabled, the AS/400 creates an APPC controller that conflicts with the controller you are creating. If this occurs, de-activate (Vary Off) the auto-configured controller and remove it. If you do not want to disable the auto-configuration option, follow these steps:
  1. Make sure that you complete the AS/400 configuration first.
  2. Make sure that the controller is varied on before you try to activate the SNA Server connection.
  3. If there is an active connection, re-enable auto-configuration.

AS/400 configuration

  1. Create a remote workstation controller. The SNA Server is detected as a LAN-attached 3174 controller by the AS/400. At a command prompt, type the following one-line command:

    CRTCTLRWS CTLD(<controller name>) TYPE(3174) MODEL(0) LINKTYPE(*LAN)
    SWTLINLST(<line name>) EXCHID(05DFFFFF) ADPTADR(<server MAC address>)

    • <controller name> is the name for the controller. Any name can be specified.
    • <line name> is the name of the AS/400 line description for the LAN connection.
    • <server MAC address> is the network interface card (NIC) address of the SNA Server.
  2. Create 3270 devices. Each 3270 device corresponds to one emulation session and one display LU in SNA Server Admin. At a command prompt, type the following one-line command:

    CRTDEVDSP DEVD(<device name>) DEVCLS(*RMT) TYPE(3278) MODEL(0) LOCADR(02) CTL(<controller name>)

    • <device name> is the name for the device. Any name can be specified.
    • <controller name> is the name of the controller in step 1.
  3. Repeat typing the command on step 2. Increase LOCADR until you have created the desired number of devices.
  4. Vary on the controller and devices and verify that they are ready for use. Type the following command:

    WRKCFGSTS *CTL <controller name>

    • <controller name> is the name of the controller in step 1.
  5. The controller and attached devices are displayed in a state of Varied Off. Use option 1 to Vary On the controller.
  6. Wait for a moment, and then press F5 to refresh the display. Make sure that the status of the controller is Active and that all of the devices are Vary On Pending.

SNA Server 4.0 and Host Integration Server 2000 configuration

  1. Run Manager and add an 802.2 link service.

    Note Do not use the AS/400 Configuration Wizard.
  2. Configure the 802.2 connection (associated with the 802.2 link service) by using the following properties:

    Remote End: Host System
    Activation: On Server Startup (recommended but any of the options should work)
    Allowed Directions: Outgoing Calls

  3. Use the Address tab and the System Identification tab to add the following parameters:

    Remote Network Address: <NIC address> (Enter the NIC address of the AS/400. This address can be found in the ADPTADR parameter of the AS/400 line description.)

    Local Node ID and Remote Node Name fields: <Use Default Settings>

  4. Click the 802.2 connection, and then insert all the required 3270 LUs off the connection.

    The LU numbers correspond to the LOCADR values in the AS/400 device descriptions.
  5. Assign LUs to corresponding pools and users by right-clicking the LU and using the Assign option. This step is optional.
  6. Save the configuration.

    The LUs should be available as soon as the connection is started successfully.

Modification Type:MajorLast Reviewed:3/31/2004
Keywords:kbhowto kbusage KB145954 kbAudDeveloper