Use the USSMSG macroinstruction to define Telnet terminal operator messages (USSMSGxx).
>>-+------+--USSMSG---------------------------------------------> '-name-' >--+-BUFFER=--+-buffer_address------------+------+--------------> | +-(buffer_address,--LUNAME)-+ | | '-(buffer_address,--SCAN)---' | | .-OPT=BLKSUP---------. | '-TEXT='MESSAGE_TEXT'--+--------------------+-' | .-BLKSUP---. | '-OPT=--+----------+-' '-NOBLKSUP-' >--MSG=--+-message_id-----------+------------------------------>< | .-,----------. | | V | | '-(----message_id-+--)-'

The message text defined in the storage area must follow the USSEND macroinstruction.
The message text is sent to the terminal operator as it appears in the storage area. Telnet does not modify or translate the message text. You are responsible for including any device-dependent control characters within the message. The data format must be 3270 data stream or SNA character stream (SCS). Both are not supported by Telnet.
| Character string | Message text | Format |
|---|---|---|
| @@@@DATE | Current Date | 8 bytes, in the format specified by the DATEFRM and DATEDLM operands on the USSTAB macroinstruction. |
| @@@@@@@@@IPADDR @..@IPADDR(1) | Client IP Address | 15 bytes, leading 0's suppressed, left-aligned, with trailing blanks if needed. |
| @...@IPHOSTNAME (2) | Client host name | 40 bytes, name left-aligned with trailing blanks if needed. |
| @@LUNAME (3) | Client LU Name (SLU) | 8 bytes, name left-aligned with trailing blanks if needed. |
| @@PRT | Client Port Address | 5 bytes and leading 0's are not suppressed. |
| @@@@RUNAME | Failing operation Name | 10 bytes, name left-aligned with trailing blanks if needed. |
| @@@SENSE | Sense Code or Return Code | 8 bytes. |
| @@@@TIME | Current Time | 8 bytes in the HH_MM_SS format, where an underscore (_) is the delimiter specified on the TIMEDLM operand of the USSTAB macroinstruction. |
| @HOSTNET @@@NETID @...@NQN (4) @@SSCPNM @@@@@@@@@@ZONEID | Placeholders for Telnet. Accepted for use, but are set to blanks. | |
| Notes:
|
||
For terminal operator messages, enter decimal integers in the range 0 - 14. The numbers 0 - 14 correspond to the USS messages with message IDs of USSMSG00 through USSMSG14, respectively.
Restriction: USSMSG00 is not defined in the IBM-supplied USS table. If you do not define this message, no message is sent in this case.
| Message | Variable | Example |
|---|---|---|
| MSG00 | Command | % COMMAND ACCEPTED |
| MSG01 | Command | INVALID % COMMAND SYNTAX |
| MSG02 | Command | % COMMAND UNRECOGNIZED |
| MSG03 | Command parameter | % PARAMETER EXTRANEOUS |
| MSG04 |
|
% PARAMETER VALUE %(2) NOT VALID |
| MSG05 | None | UNSUPPORTED FUNCTION |
| MSG06 | Message not used | Not applicable — NOT USED BY TELNET |
| MSG07 |
|
%(1) UNABLE TO ESTABLISH SESSION — %(2) FAILED WITH SENSE %(3) |
| MSG08 | None | INSUFFICIENT STORAGE |
| MSG09 | Message not used | Not applicable — NOT USED BY TELNET |
| MSG10 | None | A 3270 data format screen |
| MSG11 | Message not used | Not applicable — NOT USED BY TELNET |
| MSG12 | None | REQUIRED PARAMETER OMITTED |
| MSG13 | Text after IBMTEST echoed back | IBMECHO % |
| MSG14 | Message number that could not be displayed | USS MESSAGE % NOT DEFINED |
Specifies the text to use in the USS messages identified by the MSG operand. Within message_text, place any combination of the character strings described in Table 1. Telnet places the strings with the values shown in the table.
Rule: Blank suppression always occurs, even if OPT=NOBLKSUP is coded.
For TN3270E, this limitation exists. Unless specific IP-to-LU mapping is used, the LU name is not known for non-TN3270E sessions until an application is chosen from the MSG10 screen. Therefore, no @@LUNAME substitution takes place on the MSG10 screen for non-TN3270E sessions.