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 (March 2010, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 11 Mar 2010 10:45:19 -0500
Reply-To:     Arthur Tabachneck <art297@NETSCAPE.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Arthur Tabachneck <art297@NETSCAPE.NET>
Subject:      Re: Move data set without copy
Comments: To: Scott Bucher <sbucher@SCHOOLS.NYC.GOV>

Scott,

Don't you really want to use the window's "move" command rather than the copy command?

Art ------ On Thu, 11 Mar 2010 10:38:57 -0500, Scott Bucher <sbucher@SCHOOLS.NYC.GOV> wrote:

>I would like to move a data set from one library to another. Both the >libraries reference folders on the same local drive. So moving the files >does not actually require creating a copy of the data set and then deleting >the original, which is how proc data sets with the move option seems to >work. To get around this I have created a macro that issues the windows copy >command (below). However, when using this file, the explorer does not >reflect the movement of files. So I have two questions: > >(1) is the a way to programatically refresh the explorer window? >(2) is there as SAS command or procedure that moves files without copying? > >Thanks, >Scott > >Macro: > >%macro move_ds > (lib_in = > , lib_out = > , dsn = ); > > %local folder_in; > %local folder_out; > > %let folder_in = %sysfunc(pathname(&lib_in.)); > %let folder_out = %sysfunc(pathname(&lib_out.)); > > %sysexec copy /y "&folder_in\&dsn..sas7bdat" >"&folder_out\&dsn..sas7bdat"; > >%mend;


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