forked from rpardee/sas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sas
111 lines (85 loc) · 1.79 KB
/
test.sas
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/*********************************************
* Roy Pardee
* Group Health Research Institute
* (206) 287-2078
*
* C:\Documents and Settings/pardre1/Application Data/Sublime Text 2/Packages/SAS/test.sas
*
* purpose
*********************************************/
* %include "\\home\pardre1\SAS\Scripts\remoteactivate.sas" ;
options
linesize = 150
msglevel = i
formchar = '|-++++++++++=|-/|<>*'
dsoptions = note2err
nocenter
noovp
nosqlremerge
;
options orientation = landscape ;
* ods graphics / height = 6in width = 10in ;
* %let out_folder = //home/pardre1/ ;
%let out_folder = /C/Documents and Settings/pardre1/Application Data/Sublime Text 2/Packages/SAS/ ;
%let out_folder = C:\Documents and Settings/pardre1/Application Data/Sublime Text 2/Packages/SAS/test.sas ;
ods html path = "&out_folder" (URL=NONE)
body = "test.html"
(title = "test output")
;
* ods rtf file = "&out_folder.test.rtf" device = sasemf ;
run ;
ods _all_ close ;
%macro somthing ;
data gnu ;
set old ;
run ;
%mend something ;
data one ;
set two ;
if x = 3 then do ;
slsl ;
end ;
run ;
data bob ;
set sashelp.class ;
if height = 4 then do ;
weight = 40 ;
end ;
if weight = 400 then do ;
category = 'fatty' ;
end ;
else do;
something ;
end ;
run ;
data gnu;
set old;
run;
data gnu ;
set old ;
if x = 1 then do ;
y = 4 ;
end ;
if z = 4 then do ;
z = 4 ;
end ;
run ;
if y = 2 then do ;
bhal ;
end ;
run ;
data three ;
set four ;
if x = 12 then do ;
end ;
proc something ;
if x = 2 then do ;
end ;
%macro x ;
data bob ;
set mary ;
if x = 2 then do ;
end ;
run ;
%mend ;