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