SAS Enterprise Guide

Desktop productivity for business analysts and programmers
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 2062 views
  • 0 likes
  • 4 in conversation