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;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.