Functions and CALL Routines |
Category: | External Files |
Syntax | |
Arguments | |
Details | |
Examples |
Syntax |
DCREATE(directory-name<,parent-directory>) |
is a character constant, variable, or expression that specifies the name of the directory to create. This value cannot include a pathname.
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.
Details |
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.
Examples |
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.