Notes on Using This Function
- An EAB can be returned when the Set Session Parameters (9) function EAB option is used. EAB is related to each character in the presentation space and is returned preceding each character.
- DBCS Only: The Set
Session Parameters (9) function EAD option is used with this
function to return a 2-byte EAD. If the EAD option is specified instead
of the EAB option, EAD is returned preceding each character. If both
the EAB and EAD options are specified, EAD is returned preceding the
EAB.
If the start position of the copy is at the second byte in the double-byte character, or the end position is at the first byte in the double-byte character, the bytes are translated into blanks.
- The Copy Presentation Space function is
affected by the following session options:
- ATTRB/NOATTRB/NULLATTRB
- EAB/NOEAB
- XLATE/NOXLATE
- BLANK/NOBLANK
- DISPLAY/NODISPLAY
- EAD/NOEAD (for DBCS only)
- NOSO/SPACESO/SO (for DBCS only)
- EXTEND_PS/NOEXTEND_PS
Refer to items 5; 13, 14, 15 and 17; and 20 and 21 for more information.
If the target data string provided is not long enough to hold the requested data, unpredictable results can occur.
- Set Session Parameter
- Effect on the COPY Function
- NOEAB and NOEAD
- Attributes are not returned. Only text is copied from the presentation space to the user buffer.
- EAB and NOXLATE
- Attributes are returned as defined in the following tables.
- EAB and XLATE
- The colors used for the presentation space display are returned. Colors can be remapped; so the attribute colors are not the ones returned by the Copy functions when XLATE and EAB are on at the same time.
- EAD
- Double-byte character set attributes are returned as shown in the following tables.
- NOSO/SPACESO/SO
- When NOSO is specified, it works as SPACESO. The size of the presentation space is not changed.
The returned character attributes are defined in the following tables. The attribute bit positions are in IBM® format with bit 0 the left most bit in the byte.
3270 character attributes are returned from the host to the emulator. The following table applies when EAB and NOXLATE are set.
Bit Position | Meaning |
---|---|
0–1 | Character highlighting
|
2–4 | Character color (Color remap can
override this color definition.)
|
5–6 | Character attribute
|
7 | Reserved |
5250 character attributes are returned from the host to the emulator. The following table applies when EAB and NOXLATE are set.
Bit Position | Meaning |
---|---|
0 | Reverse image
|
1 | Underline
|
2 | Blink
|
3 | Separator of columns
|
4–7 | Reserved |
The following table shows Personal Communications character color attributes. The following table applies when EAB and XLATE are set.
Bit Position | Meaning |
---|---|
0–3 | Background character colors
|
4–7 | Foreground character colors
|
- Double-byte character set attributes (for DBCS only)
- The first byte
Bit Position Character Position Field Attribute Position 0 Double-byte character Reserved 1 The first byte of the double-byte character Reserved 2 SO Reserved 3–4 SI (Bit position 3) 5250 DBCS related field - When the value of bit position 7 is 0:
- 00 = Default
- 01 = DBCS only
- 10 = Either DBCS or SBCS
- 11 = Mixture of DBCS and SBCS
- When the value of bit position 7 is 1:
- 00 = Reserved
- 01 = DBCS only without SO/SI
- 10 = Reserved
- 11 = Reserved
5 Reserved SO/SI enabled (3270 only) 6 Reserved Character attributes exist (3270 only) 7 Reserved 5250 DBCS related extended field - 0 = Basic double-byte field
- 1 = Extended double-byte field
- When the value of bit position 7 is 0:
- The second byte
Bit Position Character Position Field Attribute Position 0 Reserved Left grid line (3270 only) 1 Reserved Upper grid line (3270 only) 2 Reserved Right grid line (3270 only) 3 Reserved Under grid line (3270 only) 4 Left grid line Left grid line 5 Upper grid line Upper grid line 6–7 Reserved Reserved
- The first byte
For a PS/2 monochrome display, the characters in the application (workstation) session appear as various shades of gray. This is required to give users their remapped colors in the EHLLAPI application session so they can get what they see in their host application presentation spaces.
If you want to copy only a portion of the host presentation space, use the Copy Presentation Space to String (8) function.