DATA Step, Macro, Functions and more

Warning in data step

Accepted Solution Solved
Reply
Contributor
Posts: 66
Accepted Solution

Warning in data step

Hi,

I have a piece of code that I convert a numeric into a character:

char_var = put(num_var, $16.) ;

and I get the warning

"Variable num_var has already been defined as numeric."

can anyone tell me how to get rid of this? from that point forward I only use the character version of the variable.

Thanks for your help.


Accepted Solutions
Solution
‎07-26-2011 11:41 AM
PROC Star
Posts: 7,356

Warning in data step

Just remove the $ from the statement where you are using the put function.

View solution in original post


All Replies
Solution
‎07-26-2011 11:41 AM
PROC Star
Posts: 7,356

Warning in data step

Just remove the $ from the statement where you are using the put function.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

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