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;
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.