Hi:
You may not need to use the DATA step for what you want to accomplish. It is very easy in PROC REPORT to highlight a whole row conditionally.
Consider the example code at the bottom. If you run the program, you will see that the output has every row where the age is 12 highlighted. In addition, I changed the font of the output to Courier New and removed the interior lines and borders (since that was something you wanted to do in a previous post.)
Perhaps this is something that might be an alternative to DATA _NULL_.
cynthia
[pre]
*** the code;
options center leftmargin=1in rightmargin=1in topmargin=1in bottommargin=1in;
ods listing close;
ods pdf file='c:\temp\bold_row.pdf';
ods escapechar='~';
title f="Courier New" bold 'My Title in Courier';
proc report data=sashelp.class nowd
style(report)={rules=none frame=void
cellspacing=0 cellpadding=2}
style(header)={font_face="Courier New"
font_size=12pt
background=white}
style(column)={font_face="Courier New" font_size=10pt};
column name age height;
define name / order;
define age / display;
define height/display;
compute age;
if age = 12 then
call define (_ROW_,'style',
'style={font_weight=bold font_face="Courier New"}');
endcomp;
run;
ods pdf close;[/pre]