Date: Thu, 16 Mar 2000 10:42:05 +0200
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Arjen Raateland <Arjen.Raateland@VYH.FI>
Organization: Suomen ymparistokeskus
Subject: Re: %sysexec to winnt
Content-Type: text/plain; charset=us-ascii
> We use an API called CreateDirectoryA (routine statement pasted below).
> data _null_ ;
> xxx = modulen('CreateDirectoryA','e:\bensnewdirectory',0) ;
> run ;
> The xxx is a return code, and is meant to be 0 when successful. However, in
> my experience it's either 0 or 1 - try it! the final parameter is the
> security attributes for the directory. However, if you use 0, it sets the
> folder up with "everyone" access. I guess this is not a problem?
I couldn't detect any difference between final parameter 0 or 1.
'Everybody full access' on both counts.
In my test runs, when the directory exists, the return value XXX is 0,
Nice example of a feature I wasn't aware of. Your post had just the
right information to make it work. Thanks.
Finnish Environment Institute
phone +358 9 4030 0350