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;
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.
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.