How to Configure the 5250 Device Name in EXTRA! or Reflection

  • 7021847
  • 24-May-2007
  • 01-Apr-2018

Environment

EXTRA! X-treme version 9.0
Reflection for IBM version 12.0 through 14.x

Situation

This technical note explains how to customize the TN5250 device name (also called display name) in EXTRA! X-treme and Reflection for IBM.

In display sessions, the device name is visible in the sign on screen when you connect to your host.

For information about using this feature in Reflection for IBM 2014 or 2011, see KB 7021504.

Resolution

The session's device display name can be set before connecting to the host.

The following sections describe how to change this setting in EXTRA! X-treme and Reflection for IBM.

EXTRA! X-treme

Follow these steps to set the TN5250 session device display name in EXTRA! X-treme.

  1. In EXTRA! X-treme, click Options > Settings.
  2. In the Categories list, select Connection.
  3. On the General tab, set the options for the selected connection.
  4. On the Advanced tab, in the Host device name field, enter the session display name you want to use. If this field is left blank, the host automatically assigns a device name (for example, QPADEV<####>).
Figure 1 - Set Session Display Name in the Host Device Name Field
Figure 1 - Set Session Display Name in the Host Device Name Field
  1. Optional: By default, EXTRA! uses device name collision processing. If the device name specified is already in use, EXTRA! appends a number to the current device name to create a different device name to send to the host system. If you wish to disable collision detection, check the "Allow device in use failures" check box.
  2. Click Apply and OK.
  3. Save your session.

When you connect to the host connection, the new session will now display your custom device name as the Display value.

Figure 1 - Session Display Name: CASSI
Figure 1 - Session Display Name: CASSI

Reflection for IBM

This section details how to set the session device display name in Reflection for IBM. If you choose not to configure the device display name, the AS/400 automatically assigns a device name for the session named QPADEV<####>.

If you are connecting using a 5250 Telnet or MPTN connection, you can configure Reflection to generate customized unique device names for sessions. For Telnet connections, this is configured in the device name field. Special characters can be included in the device name value to specify how the device name is displayed and incremented.

Note: MPTN connections use the Location and Device name fields. For more information about MPTN settings, refer to the Reflection online Help.

To specify how the device name should be incremented and to configure the device name, follow these steps.

  1. Set Generate Device Names to Yes. When Generate Device Names is set to Yes, Reflection automatically generates device names based on the value you specify for Device name in the Session Setup dialog box. This setting is available only for 5250 Telnet sessions.
    1. Start Reflection for IBM and click Setup > View Settings.
    2. In the Search field, enter Generate Device Names.
    3. Change Setting details to Yes, and then click OK.
  2. Click Connection > Session Setup.
  3. In the Type field, select Telnet (or MPTN).
  4. In the Device name field, enter the session display name you want to use. The device name can be up to 10 characters long.
Figure 2 - Session Display Name from the Device Name Field Figure 2 - Session Display Name from the Device Name Field

You can include any of the following characters as part of the value you enter for Device name. Note: Only a single string literal can be used at a time.

    Character
    How this character is used
    *
    Replaced by "A", "B", "C", and so on for each new session. If the entire alphabet is used, the generated device names continue with "AA", "AB", "AC", and so on.
    %
    Replaced by "P" for printer sessions and "S" for display sessions.
    =
    Replaced by "1", "2", "3", and so on.
    &COMPN
    Replaced by the local workstation name, left-trimmed if the generated name exceeds 10 characters. This character cannot be used with "&USERN".
    &USERN
    Replaced by the local user name, left-trimmed if the generated name exceeds 10 characters. This character cannot be used with "&COMPN".
    +
    Use this character with "&USERN" or "&COMPN" to specify right-trimming instead of left-trimming. This can be placed anywhere in the string.

Examples:

    • Setting Device name to "%ABC=" generates the device name SABC1 for a display session. If this is rejected, Reflection will try SABC2, SABC3, and so on.
    • Setting Device name to "%123*" generates the device name S123A for the first display session, S123B for the second session, and so on.
    • Setting Device name to "&COMPN*" generates puternameA, puternameB, puternameC for the first three sessions when the computer name is "Computername".
    • Setting Device name to "%My=Device" generates SMy. Because only one string literal can be used at a time, the second string literal ("=Device) is ignored.
    • Setting Device name to "+&USERN*" generates josephsmiA, josephsmiB, josephsmiC for the first three sessions when the computer user name is "josephsmith".
  1. Save your session.

Additional Information

Legacy KB ID

This document was originally published as Attachmate Technical Note 2207.