BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
mary_mcneill
Obsidian | Level 7

Hello,

I am trying to align my footnote to the left of the table. I tried j=left but that aligns it to the left of the margin instead of to the left of the table. Is there a way to align left of the table instead?

 

/*Syphilis Adverse Outcomes*/
title 'Syphilis Cases with Adverse Outcomes by Month';
options missing=0;
proc tabulate data=work.adverse_outcomes2 missing;
format month monfmt.;
class reportablecondition adverse_outcomes month year / preloadfmt;
table reportablecondition=''*adverse_outcomes='', Year=''*(month='' all)/ printmiss BOX='Adverse Outcomes';
keylabel N=' ' All='Total';
footnote1 '2022 is preliminary data';
footnote2 'Adverse Outcomes includes Syphilis cases where Neuro/Ocular/Otic/Late Clinical Manifestations is indicated as Possible, Likely or Confirmed';
footnote3 'Clinical Manifestations are not mutually exclusive';
footnote4 'Excludes Congenital Syphilis cases';
footnote5 'Data subject to change as additional information is reported';
footnote6 'Source: Ohio Department of Health, STD Surveillance Programs.';
footnote7 "STD Surveillance data reported through &edate. ";
run;

 

mary_mcneill_1-1653687724507.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisNZ
Tourmaline | Level 20

You mention left justification, but show centred justification?

In any case, once you write outside of the table, the table's dimensions are not available to align to.

What you can do is create surrounding divisions to align to. I coloured them so you can see where they lie.

  option nocenter;
 title '<div style="padding: 50px; background-color:red" >Title <div>';
/* title2 '<div style="padding: 50px; background-color:green" > <a />';*/
proc tabulate data=SASHELP.CLASS;
class AGE; 
table AGE,n;
run;
footnote2 'Adverse Outcomes includes Syphilis cases where Neuro/Ocular/Otic/Late Clinical Manifestations is indicated as Possible, Likely or Confirmed';
footnote3 '</div></div>';

ChrisNZ_0-1653732020296.png

 

 

 

 

 

View solution in original post

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

You mention left justification, but show centred justification?

In any case, once you write outside of the table, the table's dimensions are not available to align to.

What you can do is create surrounding divisions to align to. I coloured them so you can see where they lie.

  option nocenter;
 title '<div style="padding: 50px; background-color:red" >Title <div>';
/* title2 '<div style="padding: 50px; background-color:green" > <a />';*/
proc tabulate data=SASHELP.CLASS;
class AGE; 
table AGE,n;
run;
footnote2 'Adverse Outcomes includes Syphilis cases where Neuro/Ocular/Otic/Late Clinical Manifestations is indicated as Possible, Likely or Confirmed';
footnote3 '</div></div>';

ChrisNZ_0-1653732020296.png

 

 

 

 

 

Ksharp
Super User
title "Syphilis Cases with Adverse Outcomes by Month";
options missing=0;
ods escapechar='~';
proc tabulate data=sashelp.class missing;
class sex age/ preloadfmt;
var weight;
table sex=""*age="", weight/ printmiss BOX="Adverse Outcomes";
footnote1 j=l "%sysfunc(repeat(~_,115))2022 is preliminary data";
footnote2 j=l "%sysfunc(repeat(~_,115))Adverse Outcomes includes Syphilis cases where Neuro/Ocular/Otic/Late Clinical Manifestations is indicated as Possible, Likely or Confirmed";
footnote3 j=l "%sysfunc(repeat(~_,115))Clinical Manifestations are not mutually exclusive";
footnote4 j=l "%sysfunc(repeat(~_,115))Excludes Congenital Syphilis cases";
footnote5 j=l "%sysfunc(repeat(~_,115))Data subject to change as additional information is reported";
footnote6 j=l "%sysfunc(repeat(~_,115))Source: Ohio Department of Health, STD Surveillance Programs.";
footnote7 j=l "%sysfunc(repeat(~_,115))STD Surveillance data reported through edate. ";
run;

Ksharp_0-1653734167822.png

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 2529 views
  • 1 like
  • 3 in conversation