Dear Cynthia!
My name is Andrey, I'm write here because I think that my question is the same or near with WickWickey's question.
Could you please help me, I look for the "out2pdf" macro similar to "out2rtf" macro that shared here: http://support.sas.com//rnd/base/ods/templateFAQ/out2rtf.sas.
Does the "out2pdf" macro exist?
Thank you!
Best Regards,
Andrey
Hi:
First, it's not a good idea to tack your new post onto a 5 year old track. Usually, I don't look at old ones.
Second, if you look at the comment block at the top of the code, you will see 2 things: 1) this macro program was not written by SAS; 2) this is a VERY old program -- 13 years old since the last revision -- and to some extent, people no longer use macro programs like this, instead, they use ODS RTF, ODS PDF to write RTF and PDF files.
/*------------------------------------------------------------------------------
Program: out2rtf.sas Author: David Ward (dward@internext-inc.com)
Created: 05/1999 Revised: 11/2002
Description: Convert text-based output from *.lst files or the
output window to raw RTF
Notes: The in parameter can either be: - _OUTPUT_ (default): output window - physical file
reference: i.e. c:\temp\output.lst - all files matching by extension: i.e. *.lst, *.out This macro does not support complex
pattern matching like dem*.lst
The out parameter can either be: - a directory (mandatory for *.lst notation) - a file
reference (if you want an RTF file with a different prefix than your listing file) If your listing file has no pagebreaks
you have to specify the pagesize so we can insert RTF pagebreaks at the right places
Revision: 11/4/2002 DW
------------------------------------------------------------------------------*/
It doesn't make sense that there would be an equivalent type of program for PDF. An RTF file is an ASCII text file, the RTF control strings are inserted around your text and then a Word processor that knows how to interpret RTF strings can display the text inside the Word processor. The RTF specification was originally written by Microsoft Word. The reason that ODS RTF has replaced a macro program like this is that with ODS RTF, you don't have to worry about the RTF control strings or make a LISTING file first. You can directly send output from your procedure directly to an RTF file.
A PDF file on the other hand is a proprietary (BINARY) file format that belongs to the Adobe company. A PDF file is NOT an ASCII text file, there are NOT control strings used in the creation of a PDF file, so you must use something like ODS PDF in order to make a PDF output file from your SAS procedure output.
If you need help learning how to use ODS , please review the documentation and/or open a track with Tech Support.
cynthia
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.