TACL Reference Manual
UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual—429513-018
8-58
DETACHSEG Command
DETACHSEG Command
Use the DETACHSEG command to relinquish use of a segment file.
directory-name
is the name of a directory whose variables are in another segment file.
Considerations
•
Executing the DETACHSEG command is equivalent to popping the directory.
•
The directory must be the top level of its variable because detaching a segment
pops the segment.
•
The DETACHSEG command does not allow you to relinquish use of the segment
file whose root is :UTILS because you would lose all your commands if you did so.
•
You cannot detach the default private segment file created automatically by TACL
when you log on. This is the segment file that contains the root (:).
•
Current or pushed HOME directories that are in the segment being detached are
set to the root directory.
•
Current or pushed use-list directories that are in the segment being detached are
removed from those use lists.
•
Any #REQUESTER having any of its variables in the segment being detached is
closed.
•
Any server, implicit or explicit, having any of its variables in the segment being
detached is deleted; its openers receive error 66 on all subsequent I/O to the
server.
•
Active macros and routines whose code is stored in variables in the segment being
detached run to completion before detachment occurs.
•
When you detach a private segment file:
°
All segment files attached to it are detached from it. If you later attach the
segment file again, those segment files are not automatically attached again.
°
All variable levels within the segment are set to frame 0. This does not destroy
any variable levels, but gives the appearance that all variable levels were
created in frame 0.
°
There is a delay while TACL writes the segment file. TACL writes only as much
as has been used, not the whole file.
°
All breakpoints in that segment file are cleared.
DETACHSEG directory-name