z**o 发帖数: 149 | 1 大家知道怎么设置才能在SAS关了之后,work里面的data不被删掉?
多谢! |
k******u 发帖数: 250 | 2 work里本来就是临时的,要存成permanent的lib才可以 |
j********t 发帖数: 201 | 3 There are two ways to do so:
1) as the other reply said, 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_ |
z**o 发帖数: 149 | 4 讲的好具体,多谢大牛!
using
location.
However
【在 j********t 的大作中提到】 : There are two ways to do so: : 1) as the other reply said, 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)
|
D******n 发帖数: 2836 | 5 sas -noworkterm xxx.sas
【在 z**o 的大作中提到】 : 大家知道怎么设置才能在SAS关了之后,work里面的data不被删掉? : 多谢!
|