BookmarkSubscribeRSS Feed
Ili
Calcite | Level 5 Ili
Calcite | Level 5
Hi! I am having an issue when I import my Excel spreadsheet into SAS 9.1 My problem is that my datasheet contains many variables with only a few numerical entries. I know SAS reads the first 8 observations and chooses the num or char format based on the most common entry in those first 8 obs. I have tried to sort my data so that most of my data is in those first 8 obs, but I cannot do this for all variables because i just dont have enough complete or consistent data across all of my variables. Is there a way to change the import method in sas so that it will import all of these variables in NUM format and not change the empty variables to character?
3 REPLIES 3
osho
Calcite | Level 5
Did you try changing the column type in Excel to numeric before importing?
Ili
Calcite | Level 5 Ili
Calcite | Level 5
Yes, i have done both. The problem is that there just isnt enough data to in each column to keep the type at numeric.
osho
Calcite | Level 5
If that doesn't work, go to File>> Import and choose Excel.
When you choose the table to import, click on the 'options' button . make sure that "convert numeric values to characters in a mixed type column" in unchecked before importing.

sas-innovate-2024.png

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.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 613 views
  • 0 likes
  • 2 in conversation