LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 1999, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 29 Sep 1999 14:21:33 GMT
Reply-To:   Bruce Rogers <B.Rogers@VIRGIN.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Bruce Rogers <B.Rogers@VIRGIN.NET>
Organization:   Deja.com - Before you buy.
Subject:   Re: SCL Function to create a directory ?

In article <7st4no$1uj$1@nnrp1.deja.com>, Paul Thomas <radium_x@my-deja.com> wrote: > In article <938591064.502611@ns0.klm.nl>, > "F a b r i z i o" <Fabrizio1@usa.net> wrote: > > Andreas Grueninger wrote in message > <37f1be65.1790544@personalnews.de.uu.net>... <SNIP>

> > > > > >routine CreateDirectoryA > > > module=KERNEL32 > > > >RUN; > > > > Why build such extremely complex routines if > > > > rc = SYSTEM('MKDIR C:\TEMP\DIR'); > > > > can solve the whole problem? > > > > Grtz., Fabrizio > > > > > > Quite simply because using the SYSTEM command opens a DOS box, and > nothing is more unattractive.

In addition, if you're doing this for a large number of directories the additional overhead of the SYSTEM call, even with the noxwait and noxsync options set, is a huge burden compared with using the Windows API approach.

Although I haven't any figures to hand, ISTR when I tested the two approaches recently, creating over 10000 subdirectories in about 500 directories, the API method was several orders of magnitude faster.

Rgds Bruce -- Black Cat Solutions Ltd. SAS Software Specialists

Sent via Deja.com http://www.deja.com/ Before you buy.


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