TACL Reference Manual

Statements and Programs
HP NonStop TACL Reference Manual429513-018
5-14
Creating Program Files
partial code interpretation, the greater the number of variables you use regularly, the
more efficiency you can gain by using personal segment files instead of loading the
variables into the default segment.
Sharing a Segment File
A segment file can be restricted to your TACL process or shared among multiple TACL
processes. You can read and modify variables in a private segment file; variables in a
shared segment file can be read but not modified.
Commands and Built-In Functions That Manage Segment Files
There are several TACL commands that manage segment files:
CREATESEG creates and initializes a new segment file.
LOAD loads the contents of a library file into a segment file.
ATTACHSEG gains access, in either private or shared mode, to an existing
segment file.
DETACHSEG detaches a segment file and removes its contents from memory.
You can detach any segment file except the default segment file. After a segment
file has been detached by all TACL processes that had attached it, the segment is
available for use again as either a private or shared segment file.
SEGINFO displays information about all segment files that your TACL currently
has attached. The SEGINFO display includes a use count, which is a count of
variables that are being used by your TACL for process I/O, in the use list, or that
are in your home directory.
There are also several built-in functions that manage segment files: #SEGMENT,
#SEGMENTINFO, and #SEGMENTVERSION return information about segment files,
and #SEGMENTCONVERT converts a segment file from C20 formats to formats of
segment files created on an RVU of TACL released at C20 or after. (Later RVUs of
TACL are different from earlier RVUs because of the addition of the international
character set).
For additional information about the creation and use of segments, see individual
command and function descriptions in Section 8, UTILS:TACL Commands and
Functions and Section 9, Built-In Functions and Variables respectively.