Hello -
I am currently working with a data set that merges multiple Oracle Databases and CSVs into one .xls.
In the data set, there exist both character and numeric variables. What I would like to do is replace all the "." in the numeric values to a blank "".
The reason why I am doing this is because I have had a lot of issues with Tableau reading the "." as 0s, causing a lot of issues. When I manually make them a blank in the outputted .xls, this issues is avoided.
I have been looking on the forums for a little while and I cannot seem to find the answer that matches my request clearly - if you know of one, please let me know.
Let me know if I need to clarify anything.
Thanks,
Jeremy
Use OPTIONS MISSING=' '; at the beginning of your job. If this works will depend on the details of what you're doing but it's certainly worth a try.
Use OPTIONS MISSING=' '; at the beginning of your job. If this works will depend on the details of what you're doing but it's certainly worth a try.
This worked! Thank you so much!
How do you create the xls? Any way @Patrick's solution immediately before whatever export/proc you use should work.
Also Tableau supports SAS datasets directly so you might avoid an unneeded step with one that may well know how to understand "missing" that XLS (not even XLSX???) doesn't.
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.
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.