Date: Fri, 31 Oct 2008 21:43:24 -0700
Reply-To: David L Cassell <davidlcassell@MSN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: David L Cassell <davidlcassell@MSN.COM>
Subject: Re: what is the difference of call system and x 'command' ?
Content-Type: text/plain; charset="iso-8859-1"
I just wanted to point out that you left out my favorite,
rc = system(...);
If you're going to call out to the system, you ought to check that the call actually did what it was supposed to. The rc provides an error code that lets you verify whether things worked like you expected.
David L. Cassell
3115 NW Norwood Pl.
Corvallis OR 97330
> Date: Fri, 31 Oct 2008 19:10:21 +0200
> From: t@SAM.SE
> Subject: what is the difference of call system and x 'command' ?
> To: SAS-L@LISTSERV.UGA.EDU
> in several programs I use an external file command to perform various OS
> folder or file functions in the format
> x 'c:\sas\doTheCommand.cmd' ;
> what is the difference in doing a call system with the above ?
> sas 913 sp4 in xp sp2
You live life beyond your PC. So now Windows goes beyond your PC.