Hello -
I have a dataset that contains text wrapped in HTML coding in one of the columns. I'd like to run an ODS PDF Proc Report on top of this data, and have the text render in the manner the HTML code would have it render. Is that possible?
An example dataset woudl be below. In this example, I'd like the "text" column to show up in the PDF and maintain any bold/underline/bulleted lists as the HTML coding would dictate.
Any thoughts would be helpful!!
data work.html_text;
infile datalines delimiter='~';
format id 5.0 savedby text $5000.;
input id savedby $ text $;
datalines;
1~Smith~<!DOCTYPE html><html><head></head><body><p>This is Paragraph One</p><p>This is paragraph 2</p></body></html>
2~Johnson~<!DOCTYPE html><html><head></head><body><p>This is HTML text</p></body></html>
;
run;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.