HPlogo SNA IMF Programmer's Reference Manual: HP 3000 MPE/iX Computer Systems

Appendix C 3270 Bit Assignment and Character Translation Tables

» 

Technical documentation

» Feedback

 » Table of Contents

 » Glossary

 » Index

Table of Contents

Character Sets

This Appendix contains the following tables related to 3270 data stream communication:

  1. See Table C-1 “3270 Write Control Character Bis Assignment” for 3270 Write Control Character (WCC) bit assignment.

  2. See Table C-2 “Attention ID Codes Generated by SNA IMF” for Attention ID (AID) codes generated by SNA IMF.

  3. See Table C-3 “Command Codes for IBM Control Units” for 3270 command codes for IBM control units.

  4. See Table C-4 “3270 Field Attribute Character Bit Assignment” for bit assignments for the 3270 Field Attribute Character.

  5. See Table C-5 “3270 Buffer Control Orders” 3270 buffer control orders.

Information about ASCII and EBCDIC character translation tables and HP 3000 Native Language Support (NLS) is also provided at the end of this Appendix.

Table C-1 3270 Write Control Character Bis Assignment

BitsMeaning
0Value is determined by the contents of bits 2-7.
1 RESERVEDAlways a 1.
2-3 Line lengthDefines line length in printout as follows:
 

00 = 132-character line when orders are not present. The NL, EM, and CR orders in the data stream determine printed line length. 01 = Printed line is 40 characters. 10 = Printed line is 64 characters. 11 = Printed line is 80 characters.

4 Start printerWhen set to 1, bit 4 starts printing at the completion of the write operation.
5 AlarmWhen set to 1, bit 5 sounds an alarm at a selected output device as soon as an operation ends.
6 Keyboard enableWhen set to 1, bit 6 reenables the keyboard of a selected device so that it will accept input.
7 MDT resetWhen set to 1, bit 7 resets all modified data tag (MDT) bits in the data in the existing buffer of the selected device before writing any data or executing any orders.

 

See Table C-2 “Attention ID Codes Generated by SNA IMF” for Attention ID (AID) codes that are generated by SNA IMF.

Table C-2 Attention ID Codes Generated by SNA IMF

AID

Decimal Code

ASCII Code (Octal/Hex)

EVCDIC Code (Hexadecimal)

Graphic Character

ENTER39047/277D' (Apostrophe)
PF 149061/31F11
PF 250062/32F22
PF 351063/33F33
PF 452064/34F44
PF 553065/35F55
PF 654066/36F66
PF 755067/37F77
PF 856070/38F88
PF 957071/39F99
PF 1058072/3A7A:
PF 1135043/237B#
PF 1264100/407C@
PF 1365101/41C1A
PF 1466102/42C2B
PF 1567103/43C3C
PF 1668104/44C4D
PF 1769105/45C5E
PF 1870106/46C6F
PF 1971107/47C7G
PF 2072110/48C8H
PF 2173111/49C9I
PF 2291133/5B4A[ (ASCII) (cent sign) (EBCDIC)
PF 2346056/2E4B. (period)
PF 2460074/3C4C<
PA 137045/256C%
PA 262076/3E6E>
PA 344054/2C6B, (comma)
CLEAR95137/5F6D_ (underscore)
SYSTEM REQUEST48060/30F00

 

See Table C-3 “Command Codes for IBM Control Units” for the Command Codes for IBM Control Units.

Table C-3 Command Codes for IBM Control Units

Command

ASCII Code (Octal/Hex)

EBCDIC Code (Hexadecimal)

Graphic Character

Erase All Unprotected77/3F6F?
Erase/Write65/35F55
Erase/Write Alternate75/3D7E=
Read Buffer62/32F22
Read Modified66/36F66
Write61/31F11
Read Modified All76/3E6E>

 

NOTE: SNA IMF does not support the Write Structured Field command.

See Table C-4 “3270 Field Attribute Character Bit Assignment” for bit assignments for the 3270 Field Attribute Character.

Table C-4 3270 Field Attribute Character Bit Assignment

Bits

Field Description

0Value is determined by the contents of bits 2-7.
1 RESERVEDAlways a 1.
2 U/P

0 = Unprotected 1 = Protected

3 A/N

0 = Alphanumeric 1 = Numeric

4-5

Display indicator 00 = Normal display 01 = Normal display and light pen detectable 10 = Intensified display and light pen detectable 11 = Non-display and non-print

6 RESERVEDSet 0 0 by the host.
7 MDT

Modified data tag (MDT) indicates whether the field associated with this attribute character has been modified. 0 = Field has not been modified. 1 = Field has been modified either by the terminal operator or by the host program when it sent this attribute character to the terminal

 

NOTE: When bits 2 and 3 are both on, an automatic skip occurs.

See Table C-5 “3270 Buffer Control Orders” for 3270 buffer control orders.

Table C-5 3270 Buffer Control Orders

Byte 1

Byte 2

Byte 3

Byte 4

OrderOrder Code (EBCDIC Hex/ ASCII Hex)   
Start Field (SF)1D/1DField attribute character  
Set Buffer Address (SBA)11/11Address (1st byte)Address (2nd byte) 
Insert Cursor (IC)13/13   
Program Tab (PT)05/09   
Repeat to Address (RA)3C/14Address (1st byte)Address (2nd byte)Character to be repeated
Erase Unprotected to Address (EAU)12/12Address (1st byte)Address (2nd byte) 

 

NOTE: SNA IMF does not support the following 3270 buffer control orders:
  • Start Field Extended

  • Set Attribute

  • Modify Field

  • Graphic Escape

Feedback to webmaster