BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi, I'm importing a dataset that has 105,000 rows of data. The one column, we'll call 'X', has about 90,000 observations of numeric values and 15,000 rows of character values. If i tell it to import it as a number I get a ton of errors. The dataset I get is fine because it's them in as a missing values, I can drop them and go on with my analysis. Is there a way I can get rid of these error messages and still keep X as a numeric?
1 REPLY 1
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
If you are not able to code the INPUT statement yourself (where you can introduce ?? ahead of the specified INFORMAT), consider investigating the use of the ERRORS= system option for handling this condition.

Scott Barry
SBBWorks, Inc.

SAS Language Reference: Concepts, Error Processing in SAS
http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000993436.htm

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!

How to Concatenate Values

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.

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
  • 1 reply
  • 570 views
  • 0 likes
  • 2 in conversation