Hi,
Im still a little new to SAS, and need a little help with the Proc Print...
I have a dataset with the following variables:-
date, region, product, faults, rate, est_rate, idx, urllink2, Outage..
Now in my Proc report i have:-
Which will generate me a nice report and include a new line when the region changes..
But what i want is.. when the region changes to insert the "Outage" variable where the line ' ' statement is..
Can anyone help?
thanks in advance
Shenn
Im still a little new to SAS, and need a little help with the Proc Print...
I have a dataset with the following variables:-
date, region, product, faults, rate, est_rate, idx, urllink2, Outage..
Now in my Proc report i have:-
Code:
ods html
file="T:\Trac\Robbie\Sas\Outages.html"
style=style.newfont_robbie;
title "<img src='logo2.bmp' align=left> <img src='saslanim.gif' align=right>";
title2 justify=center h=2.5 "&title2.";
title3 justify=center h=2.5 "&title3.";
* filter the main dataset on franchise and account number and generate the report ;
proc report data=mysas.Exceptions_With_Outages nowindows ls=200 nocenter headskip split='\';
columns date region product faults rate est_rate idx urllink2;
define date / group FORMAT=ddmmyy10. WIDTH=10 SPACING=2 CENTER "Date" ;
define region / group FORMAT=$21. WIDTH=21 SPACING=2 CENTER "Region" ;
define product / display FORMAT=$7. WIDTH=7 SPACING=2 CENTER "Product" ;
define faults / display FORMAT=9. WIDTH=9 SPACING=2 CENTER "Number\Of Faults" ;
define rate / sum FORMAT=percent12.5 WIDTH=12 SPACING=2 CENTER "Fault\Rate" ;
define est_rate / display FORMAT=percent12.5 WIDTH=12 SPACING=2 CENTER "Expected\Fault Rate" ;
define idx / display FORMAT=9.7 WIDTH=10 SPACING=2 CENTER 'Index %age' ;
define urllink2 / display FORMAT=$200. WIDTH=100 SPACING=2 CENTER "Details" ;
compute after region;
line ' ';
endcomp;
run;
ods html close;
ods listing close;
Which will generate me a nice report and include a new line when the region changes..
But what i want is.. when the region changes to insert the "Outage" variable where the line ' ' statement is..
Can anyone help?
thanks in advance
Shenn