DATA Step, Macro, Functions and more

how to strikethrough text

Accepted Solution Solved
Reply
Highlighted
Contributor
Posts: 36
Accepted Solution

how to strikethrough text

I have a table of data that I"m trying to output, but I want itwith the text formatted.  I want the text color to be red and I want the text to be 'strikethroughed'.  how would I go about doing this?

 

proc sql;
select
year
from table 1;
quit;

Accepted Solutions
Solution
2 weeks ago
PROC Star
Posts: 8,094

Re: how to strikethrough text

[ Edited ]

Are you just looking for something like:

ods pdf file="/folders/myfolders/underline.pdf";
proc report data=sashelp.class nowd;
  column name age sex height weight;
  define name / display;
  define age / display;
  define sex / order;
  define height / sum;
  define weight / sum;
  compute age;
     call define(_col_,"style","style={color=red textdecoration=line_through}");
  endcomp;
run;
ods pdf close;

st.png

 

Art, CEO, AnalystFinder.com

 

View solution in original post


All Replies
PROC Star
Posts: 2,213

Re: how to strikethrough text

To which ODS destination ?
Contributor
Posts: 36

Re: how to strikethrough text

Report format is fine I think. My end result, I want to be able to export as pdf
Solution
2 weeks ago
PROC Star
Posts: 8,094

Re: how to strikethrough text

[ Edited ]

Are you just looking for something like:

ods pdf file="/folders/myfolders/underline.pdf";
proc report data=sashelp.class nowd;
  column name age sex height weight;
  define name / display;
  define age / display;
  define sex / order;
  define height / sum;
  define weight / sum;
  compute age;
     call define(_col_,"style","style={color=red textdecoration=line_through}");
  endcomp;
run;
ods pdf close;

st.png

 

Art, CEO, AnalystFinder.com

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 242 views
  • 1 like
  • 3 in conversation