|
SAS 每次会话都在!TEMP\SAS TEMPORARY FILES里创建一个名为_TDxxxx的文件夹,xxxx是4位数字,每次会话都是不同的,每次的临时数据都是在这里的。会话结束会清空里面的数据。可以设置系统选型:
WORKTERM | NOWORKTERM
Syntax Description
WORKTERM
erases the WORK files at the termination of a SAS session.
NOWORKTERM
does not erase the WORK files.
Details
Although NOWORKTERM prevents the WORK data sets from being deleted, it has no effect on initialization of the WORK library by SAS. SAS normally initializes the WORK library at the start of each session, which effectively destroys any pre-existing information。
另一方面,可以在sasv9.cfg设置
work=library-specification;
其中:
library-specification
specifies the libref or physical name of the storage space where all data sets with one-level names are stored. This library must exist.
可以再参考系统选项:
Syntax
WORKINIT | NOWORKINIT
Syntax Description
WORKINIT
erases files that exist from a previous SAS session in an existing WORK library at SAS invocation.
NOWORKINIT
does not erase files from the WORK library at SAS invocation。
|