Display Current Directory (DSPCURDIR)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Display Current Directory (DSPCURDIR) command is used to display the name of the current working directory.

Restrictions:

  1. The user must have execute (*X) authority to the current directory.

  2. The user must have read, execute (*RX) authority to each directory in the path.

Top


 

Parameters

Keyword Description Choices Notes
OUTPUT Output *, *PRINT Optional, Positional 1

Top

 

Output (OUTPUT)

Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.

*

The output is displayed for interactive jobs or printed with the job's spooled output for non-interactive jobs.

*PRINT

The output is printed with the job's spooled output.

Top


 

Examples

Example 1: Displaying the Current Directory

 DSPCURDIR 

This command displays the name of the current working directory.

Top


 

Error messages

*ESCAPE Messages

CPFA085

Home directory not found for user &1.

CPFA0CF

Error occurred determining the current directory.

Top