TACL Reference Manual

UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual429513-018
8-46
CREATESEG Command
CREATESEG Command
Use the CREATESEG command to create a TACL segment file.
file-name
is the name to be assigned to the created segment file.
Considerations
A segment file is a memory-mapped file that can be loaded rapidly into an
extended memory segment. When you log on, TACL creates a default segment file
to hold the variables in the root (:) directory. TACL then creates the UTILS
directory and attaches the TACLSEGF segment file to it for shared access. The
TACLSEGF file contains directories for all products (that are part of a software
RVU) that use TACL programs and are available on your system. You can add
your own library of variables to the default segment file. If you add variables to the
default segment file, you must do so every time TACL re-creates the file.
Along with the standard TACL segment files, you can create a segment file that
contains a library of TACL functions. If you create your own segment file, you can
instruct TACL to attach the file to a directory variable and use that directory for
reference to the file. Follow these steps:
1. Use the CREATESEG command to create and initialize a segment file.
2. Use the ATTACHSEG PRIVATE command to associate the segment file with a
directory and to gain write access to the file.
3. Use the HOME command to change the home directory to your new directory.
4. Use the LOAD command to load the contents of an existing file of TACL
routines into the segment file.
5. Use the HOME command to change your home directory back to the root (:)
directory.
6. Use the DETACHSEG command to release the segment file from the directory.
The DETACHSEG command ensures that all data is copied into the segment
file before releasing the file.
7. Use the ATTACHSEG SHARED command to attach the segment file to a
directory so that you can use the functions within the segment file.
8. Set the #USELIST built-in variable to gain access to the segment file.
These built-in commands are available:
°
#SEGMENT returns information about the default segment file.
CREATESEG file-name