Helps for Bancova Training

大家知道怎么设置才能在SAS关了之后,work里面的data不被删掉?

 
 
Picture of John Zhang
大家知道怎么设置才能在SAS关了之后,work里面的data不被删掉?
by John Zhang - Tuesday, 6 October 2015, 10:09 AM
 

Some one asked:

大家知道怎么设置才能在SAS关了之后,work里面的data不被删掉?

The answer:

There are two ways to do so:

1) you save your data in a permanent library using
libname statement.

2) You can also find the temporary folder where work is located with the
following statement:

%put %sysfunc(getoption(work));

then you can use system command to move the files into a permanent location.

1) is commonly used.
2) is rarely used.  It seems to take an "unnecessary" lengthy road.  However
, when you want to use system commands that are outside of SAS session, 2)
can be a power user's approach.

But remember the temporary folder is really "TEMPORARY", you can see the
following two locations run on two SAS sessions:

f:\saswork\username\_TD35040_RALP-PRDWTSAS01_
f:\saswork\username\_TD61540_RALP-PRDWTSAS01_