Thursday, March 16, 2017

Temporary file/folder

To use temporary file/folder, we can avoid leaving any legacy files in system. Here are my codes:
* SAS code to create temporary file;
filename a temp;
filename a list;

* SAS code to create temporary folder:
data _null_;
    guid=uuidgen();
    tmpdir=dcreate(guid,getoption('work'));
    call symputx('tmpdir',tmpdir);
run;

%put &=tmpdir;

No comments: