Device-dependent output information
Using certain options for outputting information can make the application program device-dependent. Some options allow the application program to control certain features of devices receiving output. Descriptions of the effects of various output options follow.
System Control Area (SCA)
An option of the MFS Language utility allows the creation of an SCA field in the first segment of a message or, if LPAGEs are defined, in the first segment of any or all LPAGEs. This field allows application program control of specific device features when the features apply to the device for which the message is destined. The first 2 bytes of the SCA field are defined as shown in these tables:
Usage notes follow both tables.
| Byte | Bit | Description |
|---|---|---|
| 0 | 0-7 | Should be 0. |
| 1 | 0 | Should be 1. |
| 1 | Force format write (erase device buffer and write all required data). | |
| 2 | Erase unprotected fields before write. | |
| 3 | Sound device alarm. | |
| 4 | Copy output to candidate printer. | |
| 5 | B'0'—For 3270, protect the screen when output is sent. For DPM, demand paging can be performed. | |
| B'1'—For 3270, do not protect the screen when output is sent. For DPM-B, autopaging can be performed. | ||
| 6 | For the partition formatted 3290: B'0'—do not erase existing partitions. B'1'—erase all partitions before sending message. For others, should be 0. | |
| 7 | Should be 0. | |
| Notes:
|
||
| Byte | Bit | Description |
|---|---|---|
| 0 | 0-7 | Should be 0. |
| 1 | 0 | Should be 1. |
| 1-2 | Not applicable for FIN output devices. | |
| 3 | Set device alarmin output message header. |
|
| 4 | Not applicable for FIN output devices. | |
| 5-7 | Should be 0. | |
| Notes:
|
||
Cursor location
An application program can set the cursor location on the screen either by setting a cursor attribute for a field or by using a special cursor positioning field in the output message.
Recommendation: Use the cursor attribute method because the application program does not need to know the position of fields on a device.
Using an option of the MFS Language utility, you can define a field in an output segment to allow the application program to request cursor positioning to a specific line and column on the device. Depending on the device output format used, there can be one or more such fields per LPAGE. If the field contains an invalid number it is ignored and the cursor is positioned as requested in the device output format.
The cursor field should contain two 2-byte binary numbers (no alignment required), the first containing the line number, the second containing the column number. The minimum value for the line or column is 1. For 3270-An device types, the maximum value for the line is the first parameter of the SIZE= operand; the maximum value for the column is the second parameter of the SIZE= operand. The following table lists the valid line and column values.
| Maximum Value | ||
|---|---|---|
| MFS Device Type | Line | Column |
| FIDS (240 characters) | 6 | 40 |
| FIDS3 (480 characters) | 12 | 40 |
| FIDS4 (1024 characters) | 16 | 64 |
| FIDS7 (1920 characters) | 24 | 80 |
| 3270,1 (480 characters) | 12 | 40 |
| 3270,2 (1920 characters) | 24 | 80 |
| 3270-An | ||
| SIZE=(12,40) (480 characters) | 12 | 40 |
| SIZE=(12,80) (960 characters) | 12 | 80 |
| SIZE=(24,80) (1920 characters) | 24 | 80 |
| SIZE=(32,80) (2560 characters) | 32 | 80 |
| SIZE=(43,80) (3440 characters) | 43 | 80 |
| SIZE=(27,132) (3564 characters) | 27 | 132 |
| SIZE=(62,160) (9920 characters) | 62 | 160 |