SAS Component Language Dictionary |
Category: | External File |
Syntax | |
Details | |
Example |
Syntax |
new-directory=DCREATE(dir-name<,parent-dir>); |
contains the complete pathname of the new directory, or an empty string if the directory cannot be created.
is the name of the directory to create. This must be only the directory name and cannot include a pathname.
is the complete pathname of the directory in which to create the new directory. If parent-dir is not supplied, then the current directory is the parent directory.
Details |
DCREATE enables you to create a directory in your operating environment.
Operating Environment Information: On CMS, DCREATE works only for shared file system (SFS) directories.
Example |
Create a new directory on UNIX, using the name stored in the variable DIRNAME:
newdir=dcreate(dirname,'/local/u/abcdef/');
Create a directory on Windows, using the name stored in the variable DIRNAME:
newdir=dcreate(dirname,'d:\testdir\');
Create a new directory on CMS, using the name stored in the variable DIRNAME:
newdir=dcreate(dirname,'auser.');
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.