BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Saurabh_Rana
Obsidian | Level 7

I have a numeric column like this-

Col A

100%

 100%

   0%

   0%

100%

   0%

I am trying to convert it into character format for which I am using the following code - 

 put(t1."Col A"n, 10.)

From which I am getting this output - 

Col A

   1

   1

   0

   0

   1

   0

Why am I getting this output?

1 ACCEPTED SOLUTION

Accepted Solutions
4 REPLIES 4
Saurabh_Rana
Obsidian | Level 7
What can I do to avoid such behavior?
Ksharp
Super User
data want;
set t1;
want=vvalue("Col A"n);
run;

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 1094 views
  • 0 likes
  • 3 in conversation