z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


mkdir

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Format

Read syntax diagramSkip visual syntax diagram
>>-mkdir--pathname--mode---------------------------------------><

Purpose

mkdir invokes the mkdir callable service to create a new, empty directory.

Parameters

pathname
A path name for the directory.
mode
A three- or four-digit number, corresponding to the access permission bits. Each digit must be in the range 07, and at least three digits must be specified. For more information on permissions, see Setting permissions for files and directories.

Usage

  1. The file permission bits specified in mode are modified by the file creation mask of the calling process (see umask), and are then used to set the file permission bits of the new directory.
  2. The new directory's owner ID is set to the effective user ID (UID) of the calling process.
  3. The mkdir service sets the access, change, and modification times for the new directory. It also sets the change and modification times for the directory that contains the new directory.

Examples

In the following example, assume that pathname and mode were assigned a value earlier in the exec:
"mkdir (pathname)" mode

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014