Use this record-level keyword to permit the override of either display attributes or data contents (or both) of specific fields within a record displayed on a workstation device. By using PUTOVR, you can reduce the amount of data sent to the display device.
This keyword has no parameters.
If you use the PUTOVR keyword and subfiles, certain restrictions apply. See the Application Display Programming book for more information about these restrictions and how to use PUTOVR in files that are used in the System/36™ environment..
When selected fields in a record that has already been displayed are to be changed, an output or an input/output operation sent to the record with the PUTOVR, OVRDTA, and OVRATR keywords in effect changes only the fields for which the OVRDTA or OVRATR keyword is in effect. The OVRDTA keyword permits a change in the data contents of the field and the OVRATR keyword permits a change in the display attributes of the field. The way in which fields are to be changed is controlled by setting option indicators.
The PUTOVR and OVRDTA keywords must be specified when DFT is specified for a named output-capable field. When the PUTOVR and OVRDTA keywords are both in effect for a field, the default value specified with the DFT keyword is displayed only on the first display of the field. On subsequent displays with the PUTOVR and OVRDTA keywords in effect, the program value is displayed.
The PUTRETAIN keyword and the PUTOVR keyword cannot be specified on the same record format.
The OVRDTA keyword is permitted only with output-only (usage O), input/output (usage B), program-to-system (usage P), or message (usage M) fields.
The OVRATR keyword is permitted only with output-only (usage O), input-only (usage I), or input/output (usage B) fields.
If you specify PUTOVR, you should also specify RSTDSP(*YES) on the Create Display File (CRTDSPF) or Change Display File (CHGDSPF) command. Otherwise, data on the display can be lost if the file is suspended.
A warning message is sent at file creation time if the PUTOVR keyword is specified on a record with the DSPMOD keyword. At run time, the PUTOVR keyword is ignored when the display mode changes.
CHECK(ER)
CHECK(ME)
DUP
DSPATR (all except OID and SP)
An output operation with the OVRDTA keyword in effect does not need to have the OVRATR keyword in effect to override display attributes, as well as data contents, of the field or fields being overridden.
Option indicators are valid for the PUTOVR, OVRATR, and OVRDTA keywords.
The following example shows how to specify the PUTOVR, OVRATR, and OVRDTA keywords.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00010A R INVRCD PUTOVR 00020A FLD1 1 26'INVENTORY REMAINING IN WAREHOUSE 1' 00030A* 00040A 3 2'Remaining on hand:' 00050A OVRATR 00060A 11 DSPATR(HI) 00070A* 00080A INVBAL 5Y 0 +2 00090A 12 OVRDTA 00100A* 00110A +2'Low on stock' OVRATR 00120A N70 DSPATR(ND) 00130A 70 DSPATR(HI) 00140A* 00150A SUPPPL 20 B 5 2DFT('INTERNAL') 00160A 13 OVRDTA 00170A* 00180A ACCT 20 6 2OVRDTA 00190A DSPATR(HI) 00200A 14 DSPATR(RI) A