The TERM (Terminal) command controls the format of all displays appearing on the ODT at which the command is entered.
Syntax
── TERM ─┬─────────────────────────────────────────────────┬──┤ │ ┌◄───────────────────────────────────────────┐ │ └─┴─┬─ CONVENTION ─┬─<convention name>───────┬─┴──┘ │ └─ * ─────────────────────┤ ├─ FIRST ─<number>───────────────────────┤ ├─ LINES ─<number>───────────────────────┤ ├─ LANGUAGE ─<language name>─────────────┤ ├─ MESSAGES ─┬─┬─ TRUE ──────────────────┤ ├─ MSG ──────┘ └─ FALSE ─────────────────┤ ├─ RESPONSE ─┬─ NONE ────────────────────┤ │ ├─ CONCISE ─────────────────┤ │ └─ EXPANDED ────────────────┤ ├─ TRUNCATE ─┬─ TRUE ────────────────────┤ │ └─ FALSE ───────────────────┤ ├─ USER ─┬─ = <valid usercode/password> ─┤ │ └─ - ───────────────────────────┤ └─ WIDTH ─<number>───────────────────────┘
Explanation
TERM
Displays the current terminal settings.
TERM CONVENTION <convention name>
TERM CONVENTION *
Specify the name of the convention to be used for formatting times and dates in responses to system commands. The convention name must be a valid convention. If you specify an asterisk (*), the system default convention is used.
TERM FIRST <number>
Specifies the number of screen lines to be skipped at the beginning of the display. The value of <number> must be less than the current value specified by TERM LINES. The default value is 2. The system always displays responses to primitive commands on the second line, regardless of the setting of FIRST.
TERM LANGUAGE <language name>
TERM LANG <language name>
Specify the name of the language in which responses are to be displayed at the terminal. If <language name> is not an MCP-bound language, a warning is displayed along with the names of the system-bound languages. The language is changed, even if the new language is not an MCP-bound language (a language in which MCP responses can be displayed).
TERM LINES <number>
Specifies the number of display lines on the ODT device. The value of <number> must be greater than the current value specified by TERM FIRST. The default value is 24. The maximum value is 80.
Note: | Ensure that the terminal buffer size can accommodate the transmission of a full page (LINES x WIDTH characters). |
TERM MESSAGES TRUE
TERM MESSAGES FALSE
TERM MESSAGES YES
TERM MESSAGES NO
TRUE specifies that messages coming from the system are to be displayed when they are first received. These messages include REMOVED messages, OPERATOR DS (DS command) messages, and RSVP messages. The messages appear on the line after the number of lines specified in the TERM FIRST command.
FALSE is the default value and specifies that messages coming from the system are not to be displayed when they are first received. However, these messages appear in the messages portion of the ADM display or in response to the MSG command.
TERM RESPONSE NONE
TERM RESPONSE CONCISE
TERM RESPONSE EXPANDED
Specify the form of any system response to certain system commands. NONE indicates that no system response is to be displayed. CONCISE indicates that the system is to respond only with a display of OK. EXPANDED indicates that a full system response command is to be displayed. The default value is EXPANDED.
TERM TRUNCATE TRUE
TERM TRUNCATE FALSE
TERM TRUNCATE YES
TERM TRUNCATE NO
Affects only messages specified in the MSG command. In ADM mode, messages are always truncated.
TRUE specifies that system messages, when first displayed, are to be truncated on the right if their length exceeds the value specified in the WIDTH clause. TRUE is the default value.
FALSE specifies that any incoming message that is longer than the value given in the WIDTH is to be continued on subsequent lines.
TERM USER = <valid usercode/password>
Associates the usercode with any of the following requests initiated at the ODT where the command is entered:
-
System commands sent to a remote host with the AT <host name> command
-
File transfers initiated with the WFL COPY statement
-
Job transfers initiated with the WFL START or ?AT <host name> statement
-
File inquiries initiated with the Print Directory (PD) command.
Note: | You cannot use the ODT to enter restricted ODT commands when TERM USER is set as a security administrator user code. |
TERM USER −
Dissociates a usercode from that ODT.
TERM WIDTH <number>
Specifies the physical width, in characters, of the ODT device. The default value is 80. The maximum value is 132.
Note: | Ensure that the terminal buffer size can accommodate the transmission of a full page (LINES x WIDTH characters). |
Examples
Example 1
This example shows a normal response from a TERM inquiry.
TERM
TERM LINES 24 WIDTH 80 FIRST 2 LANGUAGE ENGLISH CONVENTION *(ASERIESNATIVE) TRUNCATE TRUE RESPONSE EXPANDED MESSAGES FALSE
Example 2
This example changes the language in which responses are to be displayed at the terminal to French.
TERM LANG FRANCAIS
LANGUAGE CHANGED FROM ENGLISH TO FRANCAIS
Example 3
This example attempts to change the language in which responses are to be displayed at the terminal to Hindi. The system responds that Hindi is not a language that can be displayed by the MCP.
TERM LANGUAGE HINDI
LANGUAGE CHANGED FROM FRANCAIS TO HINDI WARNING : HINDI IS NOT AN MCP BOUND LANGUAGE The MCP bound languages: ENGLISH FRANCAIS