Amadeus cookies policy - you'll see this message only once.

Amadeus use cookies on this website. They help us to know a little bit about you and how you use our website, which improves the browsing experience and marketing - both for you and for others. They are stored locally on your computer or mobile device. To accept cookies, continue browsing as normal. Or, go to the privacy policy for more information.

Moving Data Between Libraries

If you would like to move a data set from one library to another, rather than copy it, you can use the MOVE option with either Proc DATASETS or Proc COPY.

First, lets build a simple data set (TABLE1) the WORK library:

data work.table1;
  do i = 1 to 10;
    output;
  end;
run;

Now lets move TABLE1 into the SASUSER library with Proc DATASETS:

proc datasets lib=work;
  copy out=sasuser move;
  select table1;
quit;

One final example, lets move TABLE1 back into the WORK library, this time with Proc COPY:

proc copy in=sasuser out=work move;
  select table1;
run;