I would like to add a note below a proc freq table. I don't want to do it as a footnote since that is general and is on the bottom of the page, I want it higher up on the page. I looked up in SAS help about using Note, but I keep getting an error 180-233. I am using SAS Enterprise Guide 9.4. Below is my code (I even tried the code in the SAS manual, but couldn't get it to work). If anyone can help that would be great (maybe SAS 9.4 no longer allows this???)
proc freq DATA=WORK.TWO;
tables Method*BQTR/ NOPERCENT NOROW ; *To get state totals and percent;
WHERE fetpresent=2 and gestage1=2 and prevbirth=0 and plural=0;
title1 'Percent of Maine Cesarean Deliveries Among Low-risk First Births per Quarter';
title3 'Preliminary 2019 Maine Occurrence Data';
note "Numerator: # of cesarean deliver among term (+37 wks), singleton, vertex births to nulliparous women"
" Denominator: # of term (+37 wks), singleton, vertex births to nulliparous women"
"10/28/2019, ar";
RUN;
Here is an example of the suggested Proc ODSTEXT:
proc freq DATA=WORK.TWO; tables Method*BQTR/ NOPERCENT NOROW ; *To get state totals and percent; WHERE fetpresent=2 and gestage1=2 and prevbirth=0 and plural=0; title1 'Percent of Maine Cesarean Deliveries Among Low-risk First Births per Quarter'; title3 'Preliminary 2019 Maine Occurrence Data'; run; title; Proc odstext; p "Numerator: # of cesarean deliver among term (+37 wks), singleton, vertex births to nulliparous women Denominator: # of term (+37 wks), singleton, vertex births to nulliparous women 10/28/2019, ar"; RUN;
Note that this has ONE paragraph for the text.
You don't say where you got the reference for "note" but when you placed before the RUN statement it became part of the Proc Freq syntax and that is not a Proc Freq option. Also since you had multiple bits between your quotes that would tend to be problematic for anything that expected a single string argument.
Here is an example of the suggested Proc ODSTEXT:
proc freq DATA=WORK.TWO; tables Method*BQTR/ NOPERCENT NOROW ; *To get state totals and percent; WHERE fetpresent=2 and gestage1=2 and prevbirth=0 and plural=0; title1 'Percent of Maine Cesarean Deliveries Among Low-risk First Births per Quarter'; title3 'Preliminary 2019 Maine Occurrence Data'; run; title; Proc odstext; p "Numerator: # of cesarean deliver among term (+37 wks), singleton, vertex births to nulliparous women Denominator: # of term (+37 wks), singleton, vertex births to nulliparous women 10/28/2019, ar"; RUN;
Note that this has ONE paragraph for the text.
You don't say where you got the reference for "note" but when you placed before the RUN statement it became part of the Proc Freq syntax and that is not a Proc Freq option. Also since you had multiple bits between your quotes that would tend to be problematic for anything that expected a single string argument.
Note is a global statement in SAS/GRAPH. It isn't supported by ODS tables or graphics destinations.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.