BookmarkSubscribeRSS Feed
geoffatkins
Calcite | Level 5

Previously while working with the standard installed version of SAS 9.3 installed on a windows machine, you could copy data from excel table to SAS work space without a problem.

I recently installed the free university edition of SAS and tried doing the same unsuccessfully. After playing about with the data for a little while, I realized that if you copy data directly from excel, SAS interprets different columns as white spaces/ tabs and merges data causing  an erroneous data table.

To correct this you would need to remove tabs/ white spaces from your data in excel before copying into SAS university edition. You can do this in text file (note pad) or using the tool provided here: Remove Extra Whitespace and Tab Space

Hopefully this saves someone some headache!

7 REPLIES 7
Tsegazaab
Calcite | Level 5

Thank you for the exact answer. Helpful.

Cheer up!

YTH
Calcite | Level 5 YTH
Calcite | Level 5

I noticed that I cannot copy data from excel and paste it on SAS studio today.

Thanks a lot for providing the information to solve the problem.

 

 

Tom
Super User Tom
Super User

What is the issue with pasting values from Excel into SAS/Studio?

I don't have any issue copy and pasting into SAS/studio interface running a full version of SAS and using Chrome as the brower.

 

Note that I have the Editor option to automatically convert tabs into spaces checked. 

YTH
Calcite | Level 5 YTH
Calcite | Level 5
If you just copy data from excel or your computer SAS software, then the
SAS studio cannot read that data that you paste. So, I need to replace
white space and tabs with a single space in order to let SAS studio read
the data correctly.

I am using Mac with Safari for my SAS studio
Tom
Super User Tom
Super User

I still not sure I understand the issue. 

 

Are you saying you can't get it to copy and paste?  Are you using mouse buttons or pressing keys to copy and paste? Try using the other way if one doesn't work.

 

Or are you saying the value that is pasted is garbled in some way?  If so how is it garbled? 

 

Is it pasting it like a block copy so that the inserted text is mixed with the text that is already on the following lines?  If so then perhaps you should just paste to the end of the file and then move it where you want it. Or paste into a separate editor window.

SaraAguilar
Calcite | Level 5

GOD BLESS YOU!!!! YOU SAVED ME!!!!!! THANK YOU THANK YOU THANK YOU!!!!!

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 7 replies
  • 5225 views
  • 4 likes
  • 6 in conversation