I'd like to use the data in an Excel spreadsheet in SAS. One of the fields in my spreadsheet sometimes contains a comma. I'm not able to access SAS right now, but I'm being told that the comma will cause a problem when I bring the data into SAS.
If you read the data in as a CSV file then yes, it'll cause problems, however, if you use the import procedure that should hopefully circumvent this issue.
If you HAVE to export it from Excel to a flat file, then read it in to SAS, use a different delimiter than a comma, personally, I always opt for using pipes "|" as delimiters as you can be pretty sure that there will not be any of those used in the actual text, whereas the two most common delimiters (tabs and commas) are frequently used (be especially careful of tab delimited files exported from Access).
Another pitfall to watch out for is header rows which I have occasionally come across containing carriage returns, which obviously signify the end of the line to SAS and can cause havoc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.