TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-264
#MYTERM Built-In Variable
#MYTERM Built-In Variable
Use #MYTERM to obtain the name of your current TACL home terminal. The TACL
home terminal is typically the terminal designated by applications to receive critical
system messages (such as abend notifications). A home terminal can be a physical
terminal name or a process name.
Result
#MYTERM returns your current TACL home terminal name.
Considerations
•
When you first log on, #MYTERM is initialized to the name of your home terminal.
•
Use #MYTERM to direct Inspect and Debug output to your home terminal from a
process running at a different terminal.
•
Use #MYTERM to change the home terminal name for backup processes.
•
When a process abends, TACL notifies the parent TACL process in addition to the
home terminal.
•
The #MYTERM display includes the node name only if the home terminal is
running on a remote system or if the TACL defaults contain a node name.
•
Use #PUSH #MYTERM (or PUSH #MYTERM) to save a copy of your current
TACL home terminal name.
•
Use #POP #MYTERM (or POP #MYTERM) to restore your current TACL home
terminal to the last home terminal name pushed.
•
Use #SET #MYTERM (or SET VARIABLE #MYTERM) to define your current TACL
home terminal name.
The syntax of #SET #MYTERM is:
home-term
is the terminal name or process name that is to become your new home
terminal. This does not affect the location to which TACL writes its output or
from which it reads commands, but it does affect the home terminal
designation for processes TACL starts.
#MYTERM
#SET #MYTERM home-term