SASUnit Examples  Version 1.2
_sasunit_reportmanhtml.sas
Go to the documentation of this file.
1 
29 /* change log
30  22.07.2009 AM necessary modifications for LINUX
31  19.08.2008 AM national language support
32  11.08.2008 AM Frameseite erzeugen, wenn zwei Reports verglichen werden.
33  05.02.2008 AM Unterstrich zu Beginn der Kopierziele hinzugefügt,
34  damit auch SAS-Dateien korrekt verarbeitet werden.
35 */
36 
37 %MACRO _sasunit_reportManHTML (
38  i_scnid =
39  ,i_casid =
40  ,i_tstid =
41  ,i_extexp =
42  ,i_extact =
43  ,o_html =
44  ,o_output =
45 );
46 
47 %local l_ifile l_ofile;
48 %let l_ifile=&g_target/tst/_&i_scnid._&i_casid._&i_tstid._man_;
49 %let l_ofile=&o_output/_&i_scnid._&i_casid._&i_tstid._man_;
50 
51 %if %sysfunc(fileexist(&l_ifile.exp&i_extexp)) %then %do;
52  %_sasunit_copyFile (&l_ifile.exp&i_extexp, &l_ofile.exp&i_extexp);
53 %end;
54 %if %sysfunc(fileexist(&l_ifile.act&i_extact)) %then %do;
55  %_sasunit_copyFile (&l_ifile.act&i_extact, &l_ofile.act&i_extact);
56 %end;
57 
58 %if %sysfunc(fileexist(&l_ifile.exp&i_extexp)) and %sysfunc(fileexist(&l_ifile.act&i_extact)) %then %do;
59 data _null_;
60  file "&o_html";
61  %_sasunit_reportHeaderHTML(%str(&g_nls_reportMan_001 &i_scnid - &g_nls_reportMan_002 &i_casid - &g_nls_reportMan_003 &i_tstid - &g_nls_reportMan_004));
62  put '<frameset rows="50%,50%">';
63  put " <frame src=""_&i_scnid._&i_casid._&i_tstid._man_exp&i_extexp"" name=""Expected"">";
64  put " <frame src=""_&i_scnid._&i_casid._&i_tstid._man_act&i_extact"" name=""Actual"">";
65  put "</frameset>";
66  put '</body>';
67  put '</html>';
68 run;
69 %end;
70 
71 %MEND _sasunit_reportManHTML;