18.08.2013 Views

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MESSAGE (ME)<br />

MESSAGE (ME)<br />

The MESSAGE; command sends a message from Ispec or Report logic to the screen (or to<br />

a PRINT$ file if from an OS 2200 based Report).<br />

The MESSAGE; command sets GLB.ERROR to ***** in Ispec logic, but not in Report logic.<br />

Parts of a Message<br />

A message consists of two parts:<br />

$ A value. This can be a data item or the words ERROR or ATTENTION. It is displayed<br />

in reverse video, and will be truncated to a length of 16 characters.<br />

Signed numeric data values are displayed left-aligned with leading zeros suppressed.<br />

Decimals are displayed, and negative values are followed by a minus sign.<br />

$ Associated text. This text can be a literal or data item containing a value of up to 50<br />

characters. Due to a COBOL restriction, the double-quote character requires two<br />

character positions. Global Setup Data items can be used to hold messages, which can<br />

be stored in multiple languages. A numeric value in the text area will be syntaxed as an<br />

error.<br />

Note: When the MESSAGE; command is used in Reports, no truncation of the value is<br />

done, but the combined message is truncated to 80 characters.<br />

How Messages are Displayed<br />

If only one message is to be displayed, it appears on the status line at the bottom of Page 1.<br />

(On OS 2200 based <strong>LINC</strong> Systems, the first character of the message must not be a slash (/)<br />

character.) If two or more messages are invoked, they will appear on Page 2 (or Page 3 for<br />

UNIX and OS 2200 based <strong>LINC</strong> Systems) of the terminal.<br />

For LDA, if only one message is to be displayed, it appears on the status line. If two or<br />

more messages are invoked, they appear in a dialog box and a message is displayed on the<br />

status line indicating there are multiple messages.<br />

Multiple messages are displayed on MCP based <strong>LINC</strong> Systems and in LDA in reverse order<br />

to which they are coded, but on OS 2200 based and UNIX <strong>LINC</strong> they are displayed in the<br />

order specified on the System Environment Options screen.<br />

For UNIX and OS 2200 based <strong>LINC</strong> Systems, there is a limit of how many messages are<br />

displayed (22 messages for UNIX and 19 messages for OS 2200 based). When this limit is<br />

exceeded, an error message is produced.<br />

Messages sent from an unattached Report are not returned to the screen.<br />

Note: Messages queued from the MESSAGE; command take priority over any Teach<br />

screen currently displayed on Page 2.<br />

1-168 v

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!