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

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
  • 4 replies
  • 1142 views
  • 0 likes
  • 3 in conversation