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
Don't you really want to use the window's "move" command rather than the
On Thu, 11 Mar 2010 10:38:57 -0500, Scott Bucher <sbucher@SCHOOLS.NYC.GOV>
>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
>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
>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?
> (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"