CHDIR

This command changes the process' curren t working directory (CWD).

Syntax

CHDIR 2 2 DIR= 3dir name 32 ;SHOW NOSHOW 3

Parameters

 

 

 

 

 

 

 

 

 

dir

 

name

The name of the new curren t directory (optional). The

 

 

 

 

dir

 

name is assumed to be an MPE name. Y ou can change to

 

 

 

 

 

 

 

HFS-named directories if dir

 

name starts with a dot (.) or a

 

 

 

 

 

 

 

slash (/). The dir

 

name may not end in a slash, and using

 

 

 

 

 

 

 

wildcards is not allo wed. If dir

 

name is omitted, your logon

 

 

 

 

 

 

 

directory is used. Your logon directory is y our logon group, in

 

 

 

the form: /LOGON_ACCOUNT/LOGON_GROUP .

SHOW

Displays to $STDLIST the absolute pathname of the \directory

 

 

 

changed to". SHOW is the default.

NOSHOW

Does not displa y the absolute pathname.

Operation Notes

You can use the CHDIR command to change the process' CWD to dir name . If dir name is omitted, the logon group is assumed. The user alwa ys has a logon group.

The CHDIR command changes the CWD to an MPE-named directory . This means that dir name must follow all MPE naming rules, unless it is pre￿xed with a dot (.) or a slash (/).

You can change the CWD to an y HFS directory, MPE account, or MPE group where you have the appropriate permission.

The CWD is a process-local attribute. When CHDIR is executed from the CI, the CI's CWD is c hanged for the life of that CI process (or un til another CHDIR command is issued). When CHDIR is executed programmatically from a c hild

2-42 MPE/iX Commands