BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
anner
Fluorite | Level 6

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;

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

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.

 

 

View solution in original post

4 REPLIES 4
Reeza
Super User
I'm not familiar with a NOTE statement at all...
Look into PROC ODSTEXT or ODS TEXT statements instead of a footnote statement. And footnotes do not necessarily go the bottom of the page, they can go below the output.
ballardw
Super User

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.

 

 

anner
Fluorite | Level 6
Thank you for the help.
PGStats
Opal | Level 21

Note is a global statement in SAS/GRAPH. It isn't supported by ODS tables or graphics destinations.

PG

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1330 views
  • 0 likes
  • 4 in conversation