Hello,
Below is a macro program that I wrote for class. I am trying to get the TITLE1 for my summary statistic section (PROC MEANS) to output in italics. I can't seem to get it to be italicized when I run it in SAS and when I create a pdf as well. I would love help with how to fix this. Thank you for your time!
ODS PDF FILE = "&CourseRoot/filepath/Test.pdf";
ODS NOPROCTITLE;
%MACRO HS (DSNm = , Vbl = , Stats = N MEAN STDDEV,
NDec = 1);
TITLE1 "Histogram for '&Vbl.' from Data Set '&DSNm'";
PROC SGPLOT DATA = &DSNm;
HISTOGRAM &Vbl;
RUN;
TITLE;
TITLE1 "Summary Statistics for '&Vbl.' from Data Set '&DSNm'" ITALIC;
PROC MEANS
DATA = &DSNm
MAXDEC = &NDec
&Stats;
VAR &Vbl;
RUN;
TITLE;
%MEND HS;
%HS (DSNm = Work.Test, Vbl = WtLb, Stats = Q1 MEDIAN Q3 P90, NDec = 0);
ODS;
ODS PDF CLOSE;
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: