Codes returned by ASSIGN

The ASSIGN command can return codes in the TERMCODE and FCI options.

  • See Table 1 for return codes in the TERMCODE option.
  • See Table 2 for return codes in the FCI option.

ASSIGN TERMCODE

Table 1 shows you the meanings of the terminal type codes in the first byte of the data area returned by the TERMCODE option of the ASSIGN command.

The codes are derived from the DEVICE attribute of the TYPETERM resource. The second byte of the data area contains a model number in character form, as set by the TERMMODEL attribute of the TYPETERM resource definition.

The codes are listed here as both bit patterns and hexadecimal values.

Table 1. Terminal type codes
Code   Meaning
.... ...1 X'01' 7770
.... ..1. X'02' System 7
.... 1... X'08' Console
...1 ..1. X'12' Sequential disk
...1 .1.. X'14' Magnetic tape
...1 1... X'18' Card reader or line printer
...1 1..1 X'19' Spooling system printer
...1 1.1. X'1A' Spooling internal reader
..1. .... X'20' Hard-copy terminals
..1. ...1 X'21' Model 33/35 TWX
..1. ..1. X'22' Teletypewriter
..1. .1.. X'24' 1050
..1. 1... X'28' 2740
..1. 1.1. X'2A' 2741 Correspondence
..1. 1.11 X'2B' 2741 EBCDIC
.1.. .... X'40' Video terminals
.1.. ...1 X'41' 2260 local
.1.. 1... X'48' 2260 remote
.1.. 1.1. X'4A' 1053
.1.. 11.. X'4C' 2265
1... .... X'80' Bisynchronous
1... ..1. X'82' 2770
1... .1.. X'84' 2780
1... .1.1 X'85' 3780
1... .11. X'86' 2980
1... 1... X'88' 3735
1... 1..1 X'89' 3740
1... 1.1. X'8A' 3600 bisynchronous
1..1 ...1 X'91' 3277 remote
1..1 ..1. X'92' 3275 remote
1..1 1..1 X'99' 3277 local
1.1. .... X'A0' Bisynchronous - programmable
1.1. ...1 X'A1' System/3
1.1. .1.. X'A4' z Systems®
1.1. .11. X'A6' System/7 with BSCA
1.11 .... X'B0' SDLC device class
1.11 ...1 X'B1' 3601
1.11 ..1. X'B2' 3614
1.11 .1.. X'B4' 3790
1.11 .1.1 X'B5' 3790 User program
1.11 .11. X'B6' 3790 SCS printer
1.11 1... X'B8' 3650 Pipeline
1.11 1..1 X'B9' 3653 Host conversational
1.11 1.1. X'BA' 3650 Attached 3270 HC
1.11 1.11 X'BB' 3650 User program
1.11 11.1 X'BD' Contention logical unit
1.11 111. X'BE' Interactive logical unit
1.11 1111 X'BF' Batch logical unit
11.. .... X'C0' LUTYPE 6
Note: An ASSIGN TERMCODE for an ISC session returns X'C0' for LUTYPE 6. An INQUIRE CONNECTION then determines whether this ISC connection is using LUTYPE6.1 or APPC protocols.
11.. ...1 X'C1' LUTYPE 4
11.1 ...1 X'D1' ISC MM conversation
11.1 ..1. X'D2' LUC mode group entry
11.1 ..11 X'D3' LUC session

ASSIGN FCI

Table 2 shows you the meanings of the facility control indicator codes in the data area returned by the FCI option of the ASSIGN command.

Table 2. Facility control indicator codes
Code
  Meaning
.... ....
X'00'
None
.... ...1
X'01'
Terminal facility indicator

This code indicates that the principal facility for the task is a terminal.

.... ..1.
X'02'
KCP macro file mask

This code is no longer in use.

.... .1..
X'04'
Interval control indicator

This code indicates that the principal facility for the task is an interval control element (ICE).

.... 1...
X'08'
Destination control indicator

This code indicates that the principal facility for the task is a transient data queue.

...1 ....
X'10'
AID facility mask

This code is no longer in use.

111. ....
X'E0'
Reserved