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;
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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.