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.
- The Copy Presentation Space function is
affected by the following session options:
- ATTRB/NOATTRB/NULLATTRB
- EAB/NOEAB
- XLATE/NOXLATE
- BLANK/NOBLANK
- DISPLAY/NODISPLAY
- EXTEND_PS/NOEXTEND_PS
Refer to items 5; 13, 14, 15 and 17; and sparopt.html#sparopt__opt18 and sparopt.html#sparopt__opt19 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.
- 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 Z and I Emulator for Windows 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
|
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.