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

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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