I am using Enterprise Guide to analyze a large payments data set. We have one field that contains a number to indicate the division responsible for a payment. I created a user-defined format to convert the number into the name of the division. Everything was working perfectly until I decided to export my results to Excel for a non-SAS user. That's when I realized my formats are only visible in Enterprise Guide. Unfortunately, the spreadsheet column contained only the division number and not its name. Did I make a mistake to use a format? Is there some way to quickly convert my formats to actual data in a new column that I can then export? (I'm trying to avoid manually listing each division number and name in a CASE statement since there are hundreds of division numbers.)
Thanks in advance!
If you use the "Send To" | "Microsoft Exel" option, it will keep the formatted values.
Tom
I've never used it, as I don't use EG, but the following appears to have the capability you're looking for:
Art, CEO, AnalystFinder.com
Thank you! That does look helpful but unfortunately I'm not authorized to install anything additional on my work computer.
First, HOW did you export to Excel?
If you used proc export than that isn't going to do it easily. Proc Export is intended to interchange actual values.
You may want to look at an ODS output such as ODS Excel or Tagsets.Excelxp with a procedure such as Proc print which usually honors formats specified in the procedure.
With my dataset open in Enterprise Guide, I clicked "Export" dropdown arrow then selected "Export WORK.QUERYXXXXXXXX." Next I specified my file location and name, and changed the File of Type dropdown from "SAS Data Files" to "Microsoft Excel workbooks".
If you use the "Send To" | "Microsoft Exel" option, it will keep the formatted values.
Tom
It worked! Thank you for the simple and easy fix!
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.