Use DirAttach to set the current BIM, workstation, PDS, or VSE directory. The current directory is used as the default directory for accessing files.
DirAttach may also be entered as DirAtt[ach], AttachDir, AttDir, Att[ach], or CD.
Optional Operands
DIR is the new current BIM, workstation, PDS, or VSE directory.
If DIR is specified as "(null)", you will be detached from your current directory for the current file type, without attaching to a new directory.
Default: your "home" directory.
OPT Specify "H" or "HOME" to set your "home" directory for the file type to the DIR directory.
DirAttach can also be invoked by entering the ContextAttach command while a DirLibrary session is current.
Detaching from all directories can be used to test that a procedure does not contain any unwanted dependencies on the current directory.
When Valid
For Host directories, the user must have EXEC level access for the DIR directory.
Return Codes
OK Successful.
NF Directory not found.
SC Inadequate access level.
Procedure Notes
DirAttach sets the TXL variables to the attributes of DIR.
Examples
Attach to your home directory for the current file type:
=> att
Attach to BIM directory 4216:
=> att 4216
Detach from any directory for the current file type. In other words, make a "null" attachment:
=> att (null)
Attach to BIM directory $SYS.DOC:
=> att $sys.doc
Attach to workstation directory SYS\DOC and cause SYS\DOC to become the home workstation directory:
=> att \sys\doc,home
You are currently attached to workstation directory PE00. Attach to workstation directory PE00\Obj:
=> att obj