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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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