Hi all,
I'm using proc report with ods HTML to output a sample report. At each break of the grouped variable (age) I'd like to write out a line ('TestLine'). The program runs clean but the line never appears. I inspected the resulting html in a text editor and verified that the text of the added line is not in the file. Any ideas what I'm missing?
data class;
set sashelp.class;
run;
ods listing close;
ods html file="c:\temp\test.html";
proc report data=class nowindows;
column age name;
define age / group;
define name / display;
break after age/;
compute after age;
line 'TestLine';
endcomp;
run;
ods _all_ close;
Hi:
Did someone change the STYLES.DEFAULT style template???? I do not observe the same behavior -- see the screenshot -- I tested 2 different styles in SAS 9.3 -- using your code with my TITLE statement added. I would suggest that you open a track with Tech Support.
cynthia
Interesting! When I ran your code the line was there.
Hi:
Are you by any chance using this in a stored process? The SASReport XML that is generated for some client applications of the BI Platform does not render the LINE statement output.
cynthia
I open 3 pane SAS, paste in the exact code above and click submitt. See the attched image as the output I get. Any idea what might be going on here? The lines appear perfectly when outputting to PDF and XLS, but nothing for HTML. Any help would be appreciated.
Hi:
Did someone change the STYLES.DEFAULT style template???? I do not observe the same behavior -- see the screenshot -- I tested 2 different styles in SAS 9.3 -- using your code with my TITLE statement added. I would suggest that you open a track with Tech Support.
cynthia
Yeah, that's got to be it. I tried the same code on a different PC and it worked fine. Thanks for your help!
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.