Thank you so much, Cynthia. It works after modifying my original posted code. By using the same syntax below, it does not work correctly on my side - none of bold1 and bold2 shows in bold. Does it work for you? /*entire line in BOLD*/ %let bold1=%str(~{style[font_weight=bold]CY2017 Feedback Report} ); /*only word "Purpose" in BOLD*/
%let bold2=%str(~{style[font_weight=bold]Purpose});
%macro gen_rptdesc;
data inside;
length line $500;
line="&bold1 ~{newline 2}";
output;
line=catx(' ',"&bold2: Data provide organizations with important information that can be used ",
"in a variety of ways. Collecting data on performance, outcomes, and other activities is the first step in helping the ",
"organization improve its ability to provide quality care, treatment and services (P.01.01.01). The ",
"hospital then compiles and analyzes the data (PI.02.01.01) and improves performance on an ongoing ",
"basis (PI.03.01.01). ~{newline 2}");
output;
run;
%mend;
%gen_rptdesc;
%macro test_1stpg;
options nodate nonumber center orientation=portrait papersize=letter;
ods escapechar = '~';
ods listing close;
ods pdf file="C:\Temp\test2.pdf" notoc;
ods pdf startpage=now;
ods layout start height=8.5 in width=7.9 in;
ods region x=.4 in y=1.6 in height=6.6 in width=7.5 in;
proc report data=inside nowd noheader
style(report)={rules=none frame=void cellspacing=0 cellpadding=.5pt};
column line;
define line /display
style(column)= {background=white
foreground=black
font_weight=medium
just=left
font_size=11pt
font_face="Arial Unicode MS"};
run;
ods layout end;
ods _all_ close;
%mend;
%test_1stpg;
... View more