LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (March 2000, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SAS-L page