TACL Reference Manual
Statements and Programs
HP NonStop TACL Reference Manual—429513-018
5-16
Creating Program Files
#OUTPUT Unknown TACL version: [taclversion]
] == End CASE
] == End IF
[#CASE [taclversion]
| t9205c00 t9205c10 | USE :mydir
| OTHERWISE |
]
#POP taclversion
#SET #PMSEARCHLIST $SYSTEM.SYSTEM [#DEFAULTS]
Releasing a Segment File
Unless you use the SEGRELEASE option with the LOGOFF command, TACL delays
detaching and purging its default segment file-an advantage if you are the next user to
log on. If a different user logs on, TACL detaches and purges that default segment file
and creates and attaches a new one.
If the CPU on which your TACL process is running fails while you are in the act of
detaching a private segment file, the segment file may be corrupted. TACL detects
corruption of segment files and prevents their reuse. If this happens to one of your
segment files, you must purge it and re-create it.
In general, TACL segment files created by previous RVUs of TACL do not have to be
rebuilt; however, if an attempt is made to use an incompatible segment file, TACL will
give a specific error message. Rebuilding is always possible from the original libraries
without change, but there is no guarantee that you will be able to decompose a
segment file into its original libraries.
Handling Process Completion Information
Depending on how you run a process from TACL and how the process handles
termination,
•
TACL can access several types of completion information: TACL supports a
STATUS option that stores an indication of why the process terminated. The
possible indications are STOP, ABEND, CPU (CPU failure), and NET (network
failure).
•
If the process specifies a completion code, you can access the completion code.
TACL stores completion code information in two STRUCT variables:
•
:_COMPLETION provides compatibility with C-series software
Note. To provide shared access to a segment file, you must specify shared when you attach
the file.
Note. If you log on at a terminal other than your usual one, or through a modem, use the
SEGRELEASE option when you log off. Otherwise, the TACL process keeps your segment file
open until someone else logs on, and you cannot detach it and reattach it in PRIVATE mode if
you decide to modify it.