33 %MACRO _reportTreeHTML (i_repdata =
38 %LOCAL d_tree d_tree1 d_tree2 d_la i;
40 %LET l_title = &g_project | SASUnit;
42 %_tempFilename(d_tree)
43 %_tempFilename(d_tree1)
44 %_tempFilename(d_tree2)
48 DATA &d_tree1 (KEEP=label popup target lvl term lst1-lst5 rc);
49 LENGTH label popup target $255 lvl term lst1-lst5 8;
52 BY scn_id cas_id tst_id;
54 tst_type=tranwrd(tst_type,"^_","");
55 tst_desc=tranwrd(tst_desc,"^_","");
58 label = "&g_nls_reportTree_001";
59 popup = "&g_nls_reportTree_002";
60 target = "scn_overview.html";
70 IF first.scn_id THEN DO;
72 popup = "&g_nls_reportTree_003 " !! put(scn_id,z3.) !! ': &
#x0D;' !! scn_desc;
73 target =
"cas_overview.html#SCN" !! put(scn_id,z3.) !!
"_";
83 IF first.cas_id THEN DO;
84 label = put(cas_id,z3.);
85 popup =
"&g_nls_reportTree_004 " !! put (cas_id,z3.) !!
': 
' !! cas_desc;
86 target =
'cas_' !! put(scn_id,z3.) !!
"_" !! put (cas_id,z3.) !!
".html";
95 label = put (tst_id, z3.) !!
' (' !! trim(tst_type) !!
')';
96 popup =
"&g_nls_reportTree_005 " !! put (tst_id,z3.) !!
': 
' !! tst_desc;
97 target =
'cas_' !! put(scn_id,z3.) !!
"_" !! put (cas_id,z3.) !!
".html#TST" !! put (tst_id,z3.);
107 DATA &d_tree2 (KEEP=label popup target lvl term lst1-lst5 rc);
108 LENGTH label popup target $255 lvl term lst1-lst5 8;
111 BY cas_auton pgm_id scn_id cas_id tst_id;
113 tst_type=tranwrd(tst_type,
"^_",
"");
114 tst_desc=tranwrd(tst_desc,
"^_",
"");
115 cas_pgm =tranwrd(cas_pgm,
"^_",
"");
118 label =
"&g_nls_reportTree_006";
119 popup =
"&g_nls_reportTree_007";
120 target =
"auton_overview.html";
131 IF first.cas_auton THEN DO;
133 WHEN (0) label = tsu_sasunit;
134 WHEN (1) label = tsu_sasunit_os;
135 WHEN (2) label = tsu_sasautos;
137 WHEN (&i+2) label = tsu_sasautos&i;
139 OTHERWISE label="&g_nls_reportAuton_015";
142 popup = "&g_nls_reportTree_009 sasunit:" !! '&
#x0D;' !! label;
143 ELSE IF cas_auton=1 THEN
144 popup =
"&g_nls_reportTree_009 os_specific sasunit:" !!
'
' !! label;
145 ELSE IF cas_auton=2 THEN
146 popup =
"&g_nls_reportTree_009 sasautos:" !!
'
' !! label;
147 ELSE IF cas_auton>2 THEN
148 popup =
"&g_nls_reportTree_009 sasautos" !! left(put(cas_auton-2,1.)) !!
':
' !! label;
150 popup =
"&g_nls_reportTree_010";
151 target =
"auton_overview.html#AUTON";
152 IF cas_auton NE . THEN target = trim(target) !! put(cas_auton,z3.);
153 target = trim(target) !!
'_';
163 IF first.pgm_id THEN DO;
166 WHEN (0) popup = trim(tsu_sasunit) !! '/' !! cas_pgm;
167 WHEN (1) popup = trim(tsu_sasunit_os) !! '/' !! cas_pgm;
168 WHEN (2) popup = trim(tsu_sasautos) !! '/' !! cas_pgm;
170 WHEN (&i+2) popup = trim(tsu_sasautos&i) !! '/' !! cas_pgm;
172 OTHERWISE popup=cas_pgm;
174 popup = "&g_nls_reportTree_011: " !! '&
#x0D;' !! popup;
175 target =
"auton_overview.html#AUTON";
176 IF cas_auton NE . THEN target = trim(target) !! put(cas_auton,z3.);
177 target = trim(target) !!
'_' !! put(pgm_id,z3.) !!
"_";
187 IF first.cas_id THEN DO;
188 label = put(scn_id,z3.) !!
"_" !! put(cas_id,z3.);
189 popup =
"&g_nls_reportTree_012 " !! put(scn_id,z3.) !!
", &g_nls_reportTree_013 " !! put (cas_id,z3.) !!
': 
' !! cas_desc;
190 target =
'cas_' !! put(scn_id,z3.) !!
"_" !! put (cas_id,z3.) !!
".html";
199 label = put (tst_id, z3.) !!
' (' !! trim(tst_type) !!
')';
200 popup =
"&g_nls_reportTree_014 " !! put (tst_id,z3.) !!
'
' !! tst_desc;
201 target =
'cas_' !! put(scn_id,z3.) !!
"_" !! put (cas_id,z3.) !!
".html#TST" !! put (tst_id,z3.);
211 DATA &d_tree &d_la(KEEP=lvl RENAME=(lvl=nextlvl));
212 SET &d_tree1 &d_tree2 END=eof;
214 IF _n_>1 THEN OUTPUT &d_la;
228 FILE
"&o_html" LRECL=1024 encoding=
"&g_rep_encoding.";
229 length class_suffix $20;
232 %_reportHeaderHTML(&l_title)
233 PUT "<a href=""overview.html"" title=""&g_nls_reportTree_015 &g_project"" target=""basefrm"" class=""hms-treeview"">&g_project.</a>";
234 PUT "<ol class=""hms-treeview"">";
237 if (not missing (rc)) then do;
238 class_suffix = scan (put (rc, PictNameHTML.), 1, '.');
242 PUT "<label class=""file" class_suffix +(-1) """><a href=""" target +(-1) """ title=""" popup +(-1) """ target=""basefrm"">" label +(-1) "</a></label>" @;
247 PUT "<input type=""checkbox""
id=""folder" _N_ z8. """/><label class=""node" class_suffix +(-1) """ for=""folder" _N_ z8. """><a href=""" target +(-1) """ title=""" popup +(-1) """ target=""basefrm"">" label +(-1) "</a></label>";
249 if (lvl < nextlvl) then do;
252 DO i=nextlvl+1 TO lvl;
258 PUT '</ol></body></html>';
262 PROC DATASETS NOLIST NOWARN LIB=work;
263 DELETE %scan(&d_tree,1,.) %scan(&d_tree1,1,.) %scan(&d_tree2,1,.) %scan(&d_la,1,.);
266 %MEND _reportTreeHTML;