hi Sami
Proc REPORT will always created break lines when using the LINE statement in a COMPUTE block. there is also the follwoing restriction:
Restrictions:
This statement is valid only in a compute block that is associated with a location in the report.
You cannot use the LINE statement in conditional statements (IF-THEN, IF-THEN/ELSE, and SELECT) because it is not executed until PROC REPORT has executed all other statements in the compute block.
see the doc for details.
There might me a away around this by using some inlineformatting functions.
Find below a sample program that illustrates this, seems to work ok, for HTML.
data have;
set sashelp.class;
sort = mod(_n_, 6);
run;
ods escapechar="~";
proc report data=have;
column sort name sex age;
define sort / order;
define name / display;
define sex / display;
define age / display;
compute after sort / style={fontsize=2pt };
length msg $ 64;
if sort in (1,2,3) then do;
msg = "~{newline 10}";
end;
else do;
msg = "~{newline 0}";
end;
line msg $64.;
endcomp;
run;
Bruno
... View more