Date: Thu, 16 Mar 2000 10:42:05 +0200
Reply-To: Arjen.Raateland@vyh.fi
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
Kimberly-Clark wrote:
> 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,
otherwise 1.
Nice example of a feature I wasn't aware of. Your post had just the
right information to make it work. Thanks.
--
Arjen Raateland
Finnish Environment Institute
SAS Support
phone +358 9 4030 0350
|