[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sas-l
Subject:    Re: SCL Function to create a directory ?
From:       Bruce Rogers <B.Rogers () VIRGIN ! NET>
Date:       1999-09-30 9:33:58
[Download RAW message or body]

In article <7st78u$43f$1@nnrp1.deja.com>,
  Bruce Rogers <B.Rogers@virgin.net> wrote:
> In article <7st4no$1uj$1@nnrp1.deja.com>,
>   Paul Thomas <radium_x@my-deja.com> wrote:
> >
> > 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.

I really should get out of this habit of replying to my own posts :-)
but on reflection last night I realised that the above statement was
not true. Having tested the Call Execute vs. Windows API methods, the
latter was significantly faster, but still very slow, as each call was
still branching out to the OS.

Instead, I wrote the whole lot of MD commands out to a batch file and
then used Execute to run that - that was what was orders of magnitude
faster!

Bruce

--
Black Cat Solutions Ltd.
SAS Software Specialists


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic