8.25 CD (Change directory)
8.25.1 Function
The CD command changes the current directory.
8.25.2 Syntax
Descriptive
path
Diagram
path ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ
8.25.3 Parameter
path
This specifies the new path. The path can be specified absolute (“D:\S390\DASD”)
or relative to the current path (“DASD”).
8.25.4 Examples
Example 1:
Change the current directory (absolute path).
HHC00013I Herc command: 'cd D:\MVS'
HHC02204I working directory set to D:\MVS
Figure 51: CD command (absolute path)
Example 2:
Change the current directory (relative path).
HHC00013I Herc command: 'cd DASD'
HHC02204I working directory set to D:\MVS\DASD
Figure 52: CD command (relative path)