Syntax
PAGE page_number variable
Parameters
Page can be abbreviated as PG.
page_number
This value specifies the destination page of the text. This number cannot be in parentheses, and if it is any value other than 0, or 2 through 5, is syntax checked by the editor.
If the page number value is in the range 2 through 5, then the text field name value is appended to page switching code, to automatically send the text string to the specified page, followed by home and top of page.
If the page number value is 0, then the text field name value is sent, without any modification to the terminal. This means that if you enter a page number value of 0, you must embed the page control sequence into the actual text field name text string.
variable
The text item value is the name of a variable that contains the string of information to be sent to the specified page. Any text longer than 1920 characters is truncated.
Description
The Page logic command is not supported on applications deployed to Windows.
The Page command is available only for MCP-based systems. It is valid, but ignored, on all other host types and in Debugger.
The Page command enables you to send a string of information to a specific screen page of the current station (terminal).
The Page command can be used only in Ispecs.
The Page command output is sent immediately (casual output), and does not wait for the end of the current transaction. Multiple Page commands to the same page within the same transaction overwrite each other.
When processing an OLTP transaction, the Page command is ignored. No user indication is given.
Example
To display text contained in variable CCODES on page three of a screen:
Page 3 CCODES