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 (November 2008, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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' ?
Comments: To: thomas <t@sam.se>
In-Reply-To:  <gefe61$tre$1@registered.motzarella.org>
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 -- David L. Cassell mathematical statistician Design Pathways 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 > > all, > > 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. http://clk.atdmt.com/MRT/go/115298556/direct/01/


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