A Visual Step-by-step Approach to Converting an RTF File to an Excel File, continued SESUG 2020
Converting an RTF (or Word) file to an Excel file with FileZigZag.com is accomplished in four easy steps.
1. Drag & Drop your RTF file, or Click the “Select” button and navigate to the location of the desired RTF file.
2. Click the “Convert to” selection box from the list of filetypes to set the conversion option along with the type of file
you want to create.
3. Enter your Email address.
4. Click the “Convert” button to initiate the conversion process and download the converted Excel file to your download
folder.
Using Traditional SAS Programming Methods to Convert RTF Files to Excel Files
A final approach often used by SAS users to convert an RTF file to an Excel file is provided below.
1. Use MS-Word to open an existing RTF file.
2. Click "File" and select "Save As" then select type "Plain Text".
3. In the File Conversion Dialog window, select "Windows (Default)" for the Text Encoding and also select "CR / LF" for
insert line breaks.
4. Assign and save "Plain Text" with a file name.
5. Using SAS software, import the "Plain Text" file to create a SAS dataset.
6. As necessary, modify dataset structure using PROC SORT, Arrays, DATA step Merge, PROC SQL joins, PROC
TRANSPOSE, metadata, Hash objects, etc.
7. Use the ODS Excel destination to save contents of SAS dataset / output / results to an Excel file.
8. Open and verify the successful conversion of the RTF file to an Excel file.
Conclusion
Because of the abundance of file formats being used by different software applications and platforms, SAS users are often faced with
the need to convert one file format to another. This paper highlights several web-based approaches along with step-by-step
instructions to help SAS users convert an RTF file to an Excel file without the need to write SAS programs and/or process data sets.
The ability to accomplish this becomes particularly important for reducing processing requirements as the size of input SAS data sets
or the input data sources grow in size.
Acknowledgments
The author thanks the 2020 South East SAS Users Group (SESUG) e-Posters Section Chairs, Shane Rosanbalm and Abbas Tavikoli,
for accepting my abstract and paper; Richann Watson, SESUG 2020 Academic Program Chair; Lesa Caves, SESUG 2020
Operations Chair; the SESUG Conference Committee; and SAS Institute for organizing and supporting a great virtual conference!
Trademarks Citations
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the
USA and other countries. ® indicates USA registration. Other brand and product names are trademarks of their respective
companies.
Author Information
Kirk Paul Lafler is an entrepreneur, consultant, educator and author, and has used SAS software since 1979. Currently, Kirk
works at San Diego State University as a lecturer and adjunct professor; at the University of California San Diego Extension as an
advisor and adjunct professor; and teaches SAS, SQL, Python and R courses, seminars, workshops and webinars to users around
the world. As the author of PROC SQL: Beyond the Basics Using SAS, Third Edition (SAS Press. 2019), Google® Search Complete
(Odyssey Press. 2014) and hundreds of SAS papers and articles; Kirk has served as an Invited speaker, educator, keynote and
section leader at SAS user group conferences and meetings worldwide; and is the recipient of 25 "Best" contributed paper,
hands-on workshop (HOW), and poster awards.