Functions and CALL Routines |
Returns the complete pathname of a new, external directory.
DCREATE(directory-name<,parent-directory>)
|
- directory-name
-
is a character constant, variable, or expression that specifies
the name of the directory to create. This value cannot include a pathname.
- parent-directory
-
is a character constant, variable, or expression that contains
the complete pathname of the directory in which to create the new directory.
If you do not supply a value for parent-directory,
then the current directory is the parent directory.
The DCREATE function enables you to create a directory
in your operating environment. If the directory cannot be created, then DCREATE
returns an empty string.
To create a new directory in the UNIX operating environment, using the
name that is stored in the variable DirectoryName, follow this form:
NewDirectory=dcreate(DirectoryName,'/local/u/abcdef/');
To create a new directory in the Windows operating environment, using
the name that is stored in the variable DirectoryName, follow this form:
NewDirectory=dcreate(DirectoryName,'d:\testdir\');
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.