Previous Page Contents Page Next Page

1.2 Features of the SNAP-IX 5250 Emulation Program

The SNAP-IX Motif 5250 emulation program:

The SNAP-IX 5250 emulation program also provides:

Each 5250 display session has its own 5250 screen in a session window. Printer sessions have no 5250 screen or session window.

1.2.1 SNAP-IX Motif 5250 Windows

The 5250 emulation program provides two windows for managing 5250 sessions:

Session Control Window

The 5250 emulation program provides a session control window that is made up of menus, icons, a toolbar, and dialog boxes. It can be used to manage 5250 sessions. For more information about the session control window, see Controlling 5250 Emulation.

5250 Session Window

There is one 5250 session window for each 5250 display session that is running. Each session window shows a 5250 screen. An operator information area (OIA) at the bottom of the session window shows status information about that session. For more information about session windows, see Controlling 5250 Emulation.

1.2.2 Local Copy Printing

In addition to the function provided by 5250 printer sessions, the SNAP-IX 5250 emulation program can also print the current contents of the display session window at the request of the user (or of the AS/400 application).

1.2.3 Right-to-Left Language Support

The SNAP-IX 5250 emulation program supports both left-to-right (LTR) languages and right-to-left (RTL) languages (such as Arabic and Hebrew).

In a formatted presentation space, the AS/400 application may designate certain fields as accepting left-to-right (LTR) characters only, right-to-left (RTL) characters only, or mixed characters, in the same way that it may designate fields as accepting any characters or only numeric characters. In a mixed field, the 5250 user can use the CLOSE key to close the gap between the LTR and RTL strings. In addition to the CLOSE key, the 5250 emulation program also provides a REVERSE key so that you can reverse the cursor direction.

1.2.4 Double-Byte Character Support

The SNAP-IX 5250 emulation program supports the use of double-byte characters, used in languages such as Japanese and Korean, to allow the program to communicate with programs on the AS/400 that support these characters. (The host language that is used is specified by the host_codepage parameter in the [define_style_header] record of the style file, which is described in [define_style_header].) This section provides more information about using 5250 emulation with double-byte characters.

Single-Byte, Double-Byte, and Mixed Fields

In a formatted presentation space, the AS/400 application may designate certain fields as accepting single-byte characters only, double-byte characters only, or mixed characters, in the same way that it may designate fields as accepting any characters or only numeric characters. In a mixed field, the 5250 user must use the SO and SI (shift out and shift in) characters to indicate the start and end respectively, of a group of double-byte characters. For more information, see Shift Out and Shift In (SO/SI) Characters.

Shift Out and Shift In (SO/SI) Characters

In presentation space fields that accept both single-byte and double-byte characters, the two special characters SO and SI (shift out and shift in) are used to indicate the start and end of a group of double-byte characters. These characters are represented by the ASCII values 0x0e (SO) and 0x0f (SI).

When a single-byte character is followed by a double-byte character, an SO character is placed after the single-byte and before the double-byte character. When a double-byte character is followed by a single-byte character, or when the last character in the field is a double-byte character, an SI character is placed after the double-byte character.

The default characters displayed are ` (open single quote) for SO and ' (close single quote) for SI; you can change these to different ASCII characters if required. You may want to choose characters that are not normally used for any other purpose in the AS/400 application to make it easier to recognize SO and SI characters. To do this, set the so_display_character and the si_display_character parameters in the [define_style_header] record of the style file to the hexadecimal values representing the ASCII characters you want to use (or to the characters themselves). For example, setting so_display_character to 3E and si_display_character to 3C displays right and left angle brackets, > (0x3E) for SO and < (0x3C) for SI. The SO and SI characters must always be single-byte characters.

The miscellaneous system key SOSI TOG (SO/SI Toggle) allows you to control whether SO and SI characters are displayed on the screen. SO and SI are displayed either as blanks or as the characters defined by the so_display_character and the si_display_character style file parameters.

Cursor Display in Double-Byte and Mixed Fields

When the cursor is in a single-byte or double-byte field, you can enter only single-byte or double-byte characters at the cursor position. When it is in a mixed field, you can enter double-byte characters if the cursor is in a double-byte subfield (between the SO and SI characters), and single-byte characters otherwise. The cursor itself is displayed as double-byte or single-byte to indicate the width of the characters you can enter. When the cursor is in a double-byte field on the screen, it is displayed as a long cursor (covering two character positions) instead of the standard one-character cursor. In a mixed field, the long cursor is displayed in positions where you can enter a double-byte character, and the short cursor is displayed elsewhere.

The SO and SI characters must always be single-byte characters. This means that the cursor under a SO or SI character is always a single-byte cursor.

Double-Byte Character in Last Column

When a field in the 5250 screen occupies more than one line, a double-byte character can sometimes be split at the end of a line; that is, the first byte of the character occupies the last column of one line, and the second byte occupies the first column of the next line.

The 5250 emulation program includes an additional column in the screen display (column 81) when you are using a double-byte host language. This column is normally left blank, with the data displayed only in the first 80 columns.

If a double-byte character occurs at the end of a line, it is displayed in positions 80 and 81, and position 1 of the following line (where the second byte of the character would normally be displayed) is left blank. The 5250 emulation program and the AS/400 will still recognize the double-byte character as occupying position 80 of one line and position 1 of the following line, and will process it correctly.

Double-byte characters can always be written to positions 79 and 80 of the last line.

Input Method for Double-Byte Characters

The way you enter double-byte characters from your keyboard varies between different Solaris systems. Your SNAP-IX supplier should provide you with information about how to enter these characters from your keyboard.

Previous Page Contents Page Top of Page Next page