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

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore 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.

SAS Training: Just a Click Away

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

Browse our catalog!

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