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 (February 2002, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 1 Mar 2002 01:18:56 GMT
Reply-To:     lpogoda <lpogoda@HOTMAIL.SPAMFREE.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         lpogoda <lpogoda@HOTMAIL.SPAMFREE.COM>
Organization: Excite@Home - The Leader in Broadband http://home.com/faster
Subject:      Re: An error message I have no clue

When SAS writes a SAS dataset to a library, it doesn't write to a file with the name you specify on the DATA statement. Instead it uses an internally generated, temporary file name. If the data step completes without errors, two things happen: If a file with this name already exists in the library, it is deleted, and the file with the internally generated name is renamed to the name you've given it on the DATA statement. In the event of an error in the data step, these events don't take place, and you get a message in the LOG to the effect that "data set whatever not replaced due to errors".

The rename operation will not succeed if there's already a file in the library with that name. My guess is that you have a file in this library with the name "experiment" and that since existing files with the final name are supposed to be deleted something's preventing the delete from happening, which in turn prevents the rename from happening, which in turn generates your error message.

The most obvious things to look for are the file is marked as "read only" or the file is open, either in some other window in the same SAS session as the one executing the program, in some other SAS session, in the SAS viewer or by some other piece of software. If that portion of your hard drive is shared across a network, whatever has the file open could be on any other machine on the network.

Annie Chang wrote in message <20020228182415.50107.qmail@web11505.mail.yahoo.com>... >Sometimes I run into an error message for a very >simple code such as the following: > >libname s "C:\directory"; > >data s.experiment; > set experiment; >run; > >NOTE: The data set experiment has 94620 observations >and 93 variables. >ERROR: Rename of temporary member for >S.EXPERIMENT.DATA failed. >ERROR: Rename of temporary member for >S.EXPERIMENT.DATA failed. >ERROR: Rename of temporary member for >S.EXPERIMENT.DATA failed. > File may be found in C:\directory. > >It's obvious that it's NOT a syntax error. So I don't >know why this is happening, not to mention >how to fix it. When it happened the first time, it's >annoying and I just restart the SAS and run it again. >Now it becomes frustrating. > >Could anyone enlighten me about this problem? Very >much appreciate any help. > >Thanks! >A. > >__________________________________________________ >Do You Yahoo!? >Yahoo! Greetings - Send FREE e-cards for every occasion! >http://greetings.yahoo.com


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