Use this file-level keyword to move the message line to the specified line number.
MSGLOC(line-number)
The parameter value is required and must be in the range 1 through 28. Any of these numbers are always valid, regardless of the display sizes specified on the DSPSIZ keyword. A diagnostic will be issued when the file is opened if a message location is in the 26 to 28 range for a 24 x 80 display size.
Display size condition names must be specified if the message line for the secondary display size is different from the default message line.
The MSGLOC keyword specification is in effect continuously from file opening to file closing. It can be temporarily overridden if the file you are defining is suspended while another file is opened to the same workstation device. The message location in effect for the other file is used until the file that you are defining is restored.
Any data on the message line before the message appears is saved and restored after the Reset key is pressed.
Option indicators are not valid for this keyword.
The following examples show how to specify the MSGLOC keyword.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 A MSGLOC(1) A
In this example, the message line is moved to line 1 for the primary display size. (Without the DSPSIZ keyword, the primary display size is the 24 x 80 display.)
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 A DSPSIZ(*DS3 *DS4) A MSGLOC(1) A *DS4 MSGLOC(1) A
The message line is moved to line 1 for both the primary display size 1 and the secondary display size 2.