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;

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 692 views
  • 0 likes
  • 3 in conversation