MPE/iX Commands Reference Manual (32650-90877)
Chapter 4 113
Command List II
Commands CALC thru COPY
Use
The CHDIR command may be invoked from a job, a session, a program, or in Break.
Pressing
Break has no effect on this command. You must have traverse directory entries
(TD) permission to each directory component in
dir_name
(refer to the ALTSEC command in
this chapter for more information on directory permissions.) The CWD is not changed if
the CHDIR command fails.
Examples
The following example shows the command entry to change to the directory dir1 in the
MYGRP group in the MYACCT account.
CHDIR /MYACCT/MYGRP/dir1
The following example shows the command entry to change to the MPE group level
(AGROUP) in the MYACCT account.
CHDIR /MYACCT/AGROUP
The following example shows the command entry to change to a directory named My_dir.
In this example, My_dir is a relative pathname and it is subdirectory in the current
working directory (CWD).
CHDIR ./My_dir
The following example shows the command entry to change to a directory named john, in
the group JONES, in the account MYACCT, by specifying the full pathname.
CHDIR /MYACCT/JONES/john
In the following example, a change is made to a directory named final by specifying the
relative pathname. The variable HPCWD displays the current working directory after the
change is made.
CHDIR ./es/final
SHOWVAR HPCWD
HPCWD = /MYACCT/JONES/john/es/final
Related Information
Commands CHGROUP, FINDDIR (UDC), LISTFILE, LISTDIR (UDC), NEWDIR, PURGEDIR
Manuals Performing System Management Tasks
CHGROUP
Switches you from the current group to another group within the logon account to which
you are allowed access. (Native Mode)
HPCWD variable yes yes
Disk space accumulation yes no
Table 4-3. CHGROUP vs. CHDIR command
Affects CHGROUP CHDIR