Command reference / ifs

CD

Change Current Directory

Sets the current working directory for resolving relative IFS paths. CD is another name for CHGCURDIR.

Allowed environments: *ALL. Positional parameters: 1.

Parameters

DIR Directory

Sets the path name of the directory that replaces the current working directory of the job.

Type
*CHAR
Required
Yes
Length
5000
Case
Mixed case

Examples

CD DIR(/DIRECTORY2)

Changes the current directory to the directory named DIRECTORY2.

CD DIR('..')

Changes the current directory to the parent directory of the directory that contains the current directory before this command is run.

IBM command documentation

Generated from os/cl/catalog/CD.json and os/cl/help/CD.json.