SASUnit Examples  Version 1.5.0
_detectsymbols.sas
Go to the documentation of this file.
1 
25 %MACRO _detectSymbols(r_note_symbol = note_symbol
26  ,r_warning_symbol = warning_symbol
27  ,r_error_symbol = error_symbol
28  );
29 
30  proc printto log=work.detect.note.log new;
31  run;
32 
33  proc printto log=log;
34  run;
35 
36  filename _detect catalog "work.detect.note.log";
37 
38  data _null_;
39  infile _detect truncover;
40  input line $char256.;
41  call symput ("&r_note_symbol", scan(line, 1, ':'));
42  stop;
43  run;
44 
45  filename _detect;
46 
47  proc datasets lib=work nolist;
48  delete detect / memtype=catalog;
49  quit;
50 
51  %IF &&&r_note_symbol = HINWEIS %THEN %DO;
52  %LET &r_warning_symbol = WARNUNG;
53  %LET &r_error_symbol = FEHLER;
54  %END;
55  %ELSE %DO;
56  %LET &r_warning_symbol = WARNING;
57  %LET &r_error_symbol = ERROR;
58  %END;
59 
60 %MEND _detectSymbols;