ContentsIndexPreviousNext

C$MAKEDIR Routine

C$MAKEDIR creates a new directory. C$MAKEDIR can make a directory only one level lower than an existing directory and cannot create more than one level at a time.

Usage

CALL "C$MAKEDIR" USING DIR-NAME GIVING STATUS-CODE

Parameters

DIR-NAME PIC X(n)

Contains the name of the directory to be created. This should be either a full path name or a name relative to the current directory. C$MAKEDIR can make a directory only one level lower than an existing directory and cannot create more than one level at a time.

STATUS-CODE Numeric data item.

Receives the return status of the call to create a directory. A return status of zero indicates that the directory was successfully created; a status of one ("1") indicates otherwise.


Note: The behavior of this library routine is affected by the setting of the FILENAME-SPACES configuration variable. See the documentation in Appendix H, Configuration File Entries, for information about the terminating character for path names.