01-21-2018 07:08 PM
01-21-2018 07:46 PM
1) I can't think of any easy way programmatically. A simple File Save As in Excel or manual copy and paste will work. Personally I think it is bad practice to hide away SAS files inside another vendor's files. Why not store them as designed as simple text files?
2) Does the .b1 extension have any significance or is it simply just a text file containing data? If it is just a text file then no problem.
01-22-2018 02:53 AM
That somehow reminds me of the person that sent me a SAS log by embedding a screenshot in jpg format in an Excel file. Instead of just copy/pasting the text into the email.
Bottom line: don't even think about it. SAS files are SAS files and should always be stored as such.
If someone sent you that abomination, request to have data sent the right way.
01-22-2018 02:58 AM
Question 2: The extension is just part of the name, it does not tell you anything about the file's contents in a guaranteed way. If you rename garbage.xlsx to garbage.txt, it's still an Excel file, and you can't read it as text.
SAS will read any text file in a data step, even if it's named myfile.somestupidextensionimadeup
Look at the file documentation to decide how to import the contents into SAS.