-
Notifications
You must be signed in to change notification settings - Fork 0
/
990dm.txt
41 lines (26 loc) · 960 Bytes
/
990dm.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
*********************************************
* Often Used SAS Programs *
* by YangChen *
* 01/06/2015 *
*********************************************;
dm'log;clear;output;clear';
options noxwait nodate nonumber/* nocenter nolabel nonotes errors=0 */ ps=32767 ls=150;
************* create file directory ;
options noxwait;
%macro cre_dir(outpath);
data _null_;
command="md &outpath.";
call system(command);
run;
%mend;
************* example; /*
%cre_dir(D:\sasprogram\data\lib);
*/
************* create lib ;
%macro cre_lib(lib,libpath);
libname &lib. "&libpath.";
run;
%mend;
************* example; /*
%cre_lib(test,D:\sasprogram\data\lib);
*/