BookmarkSubscribeRSS Feed
whymath
Lapis Lazuli | Level 10
Is there a SAS way to convert xml+xsl file to pdf file? I can open a xml file in Microsoft Edge and save it as a html file, so solution of convert html to pdf is welcomed, too.
2 REPLIES 2
sasgorilla
Pyrite | Level 9

Not sure if this is what you are looking for, but if you want to print something out to a pdf I'm pretty sure you could use code such as the following: 

ODS PDF FILE="C:/Users/path-to-file/report.pdf" STYLE=statistical;
proc print data=sasdata;
run;
ods pdf close;
ballardw
Super User

Depends on what you mean by "convert". SAS really is intended to work with data. Both of the file formats you mention can have a lot of stuff that is not data: pictures, graphs, plain text, formatted text, links to external files for example. Most of those aren't going to be simple or likely even possible to maintain something that you would consider a "conversion" using SAS.

 

To PDF may be better off with one of the tools that adds a PDF destination as a Print option if not a formal file conversion program.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 936 views
  • 0 likes
  • 3 in conversation