BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I’m given a text file, fix position, with over 500 variables in it. I’m not told which ones are numeric and which are character so I read them all in as characters. Is there a quick and easy way to get SAS to convert the one that could be numeric?

Thanks.

Timothy
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
This is not really an ODS or BASE reporting question. You could look up how the INPUT statement works and the INPUT function (to turn a character variable into a number) or you could contact Tech Support for help with this specific question.
http://support.sas.com/techsup/contact/index.html

cynthia

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 586 views
  • 0 likes
  • 2 in conversation