-
Notifications
You must be signed in to change notification settings - Fork 1
/
sas-log-extractor-demo.log
300 lines (283 loc) · 11.3 KB
/
sas-log-extractor-demo.log
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73 options ls=64 mprint source2;
74
75 %include "~/source2.sas";
NOTE: %INCLUDE (level 1) file ~/source2.sas is file
/home/sspkmnd/source2.sas.
76 +data _null_;
77 +set sashelp.class;
78 +if Name = 'John' then do;
79 +put "Lorem Ipsum is simply dummy text of the
79 !+printing and typesetting
80 +industry. Lorem Ipsum has been the industry's
80 !+standard dummy text ever
81 +since the 1500s, when an unknown printer took a
81 !+galley of type and scrambled
82 +it to make a type specimen book. It has survived not
82 !+only five centuries, but
NOTE: The quoted string currently being processed has become
more than 262 bytes long. You might have unbalanced
quotation marks.
83 +also the leap into electronic typesetting, remaining
83 !+essentially unchanged.
84 +It was popularised in the 1960s with the release of
84 !+Letraset sheets containing
85 +Lorem Ipsum passages, and more recently with desktop
85 !+publishing software like
86 +Aldus PageMaker including versions of Lorem Ipsum.";
87 +end;
88 +run;
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy te
xt eversince the 1500s, when an unknown printer took a galley of
type and scrambledit to make a type specimen book. It has survi
ved not only five centuries, butalso the leap into electronic ty
pesetting, remaining essentially unchanged. It was popularised i
n the 1960s with the release of Letraset sheets containingLorem
Ipsum passages, and more recently with desktop publishing softwa
re likeAldus PageMaker including versions of Lorem Ipsum.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
user cpu time 0.00 seconds
system cpu time 0.00 seconds
memory 487.09k
OS Memory 31908.00k
Timestamp 03/08/2018 12:10:03 AM
Step Count 25 Switch Count 0
Page Faults 0
Page Reclaims 82
Page Swaps 0
Voluntary Context Switches 0
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 0
NOTE: %INCLUDE (level 1) ending.
89
90 proc print data=sashelp.cars;
91 run;
NOTE: There were 428 observations read from the data set
SASHELP.CARS.
NOTE: PROCEDURE PRINT used (Total process time):
real time 1.91 seconds
user cpu time 1.90 seconds
system cpu time 0.01 seconds
memory 12237.03k
OS Memory 42916.00k
Timestamp 03/08/2018 12:10:05 AM
Step Count 26 Switch Count 0
Page Faults 0
Page Reclaims 2601
Page Swaps 0
Voluntary Context Switches 0
Involuntary Context Switches 2
Block Input Operations 0
Block Output Operations 896
92
93 %macro useless_loop(times);
94 data class×
95 set %do i=1 %to ×
96 sashelp.class
97 %end;
98 ;
99 run;
100 %mend;
101
102 %useless_loop(50)
MPRINT(USELESS_LOOP): data class50;
MPRINT(USELESS_LOOP): set sashelp.class sashelp.class
sashelp.class sashelp.class sashelp.class sashelp.class
sashelp.class sashelp.class sashelp.class sashelp.class
sashelp.class sashelp.class sashelp.class sashelp.class
sashelp.class sashelp.class sashelp.class sashelp.class
sashelp.class sashelp.class sashelp.class sashelp.class
sashelp.class sashelp.class sashelp.class sashelp.class
sashelp.class sashelp.class sashelp.class sashelp.class
sashelp.class sashelp.class sashelp.class sashelp.class
sashelp.class sashelp.class sashelp.class sashelp.class
sashelp.class sashelp.class sashelp.class sashelp.class
sashelp.class sashelp.class sashelp.class sashelp.class
sashelp.class sashelp.class sashelp.class sashelp.class ;
MPRINT(USELESS_LOOP): run;
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: There were 19 observations read from the data set
SASHELP.CLASS.
NOTE: The data set WORK.CLASS50 has 950 observations and 5
variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
user cpu time 0.02 seconds
system cpu time 0.00 seconds
memory 2682.40k
OS Memory 39336.00k
Timestamp 03/08/2018 12:10:05 AM
Step Count 27 Switch Count 2
Page Faults 0
Page Reclaims 696
Page Swaps 0
Voluntary Context Switches 16
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 264
103
104
105 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
118
31 %macro concat;
32 data all;
33 set
34 %do i = 1 %to 4;
35 dsn&i
36 %end;
37 ; /* this additional ';' is necessary, the first ';' is for
38 the "%end", while the second ';' is for "set " */
39 run;
40 %mend;
41
42 %concat;
MLOGIC(CONCAT): Beginning execution.
MLOGIC(CONCAT): %DO loop beginning; index variable I; start value is 1; stop value is 4; by value is
1.
MLOGIC(CONCAT): %DO loop index variable I is now 2; loop will iterate again.
MLOGIC(CONCAT): %DO loop index variable I is now 3; loop will iterate again.
MLOGIC(CONCAT): %DO loop index variable I is now 4; loop will iterate again.
MLOGIC(CONCAT): %DO loop index variable I is now 5; loop will not iterate again.NOTE: There were 6 observations read from the data set WORK.DSN1.
NOTE: There were 6 observations read from the data set WORK.DSN2.
NOTE: There were 6 observations read from the data set WORK.DSN3.
NOTE: There were 6 observations read from the data set WORK.DSN4.
NOTE: The data set WORK.ALL has 24 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.06 seconds
cpu time 0.06 seconds
MLOGIC(CONCAT): Ending execution.
31 %macro concat;
32 data all;
33 set
34 %do i = 1 %to 4;
35 dsn&i
36 %end;
37 ; /* this additional ';' is necessary, the first ';' is for
38 the "%end", while the second ';' is for "set " */
39 run;
40 %mend;
41
42 %concat;
SYMBOLGEN: Macro variable I resolves to 1
SYMBOLGEN: Macro variable I resolves to 2
SYMBOLGEN: Macro variable I resolves to 3
SYMBOLGEN: Macro variable I resolves to 4
NOTE: There were 6 observations read from the data set WORK.DSN1.
NOTE: There were 6 observations read from the data set WORK.DSN2.
NOTE: There were 6 observations read from the data set WORK.DSN3.
NOTE: There were 6 observations read from the data set WORK.DSN4.
NOTE: The data set WORK.ALL has 24 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.06 seconds
cpu time 0.06 seconds
3131 options nomlogic;
3132 %macro demo(val);
3133 %if &val eq 'test' %then %put it worked;
3134 %else %put it did not work;
3135 %mend;
3136
3137 %demo(test)
it did not work