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
Diamond | Level 26
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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 953 views
  • 0 likes
  • 2 in conversation