Display Current Directory (DSPCURDIR)
Where allowed to run: All environments (*ALL)
Threadsafe: NoParameters
Examples
Error messagesThe Display Current Directory (DSPCURDIR) command is used to display the name of the current working directory.
Restrictions:
- The user must have execute (*X) authority to the current directory.
- The user must have read, execute (*RX) authority to each directory in the path.
Top
Parameters
Keyword Description Choices Notes OUTPUT Output 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.
- The output is printed with the job's spooled output.
Top
Examples
Example 1: Displaying the Current Directory
DSPCURDIRThis 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