Hi,
I am trying to convert a variable (External_nbr, this is a column variable with unique numbers of customers) from numeric to text, sas gives me this message:
put(External_nbr, 32);
___
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
When steps fail, please post the whole log of such a step by using the {i} button (to preserve content, formatting, and positioning).
What you most likely want to do
External_nbr_new = put(External_nbr,32.);
You have to create a new variable, as you can't change the type of an existing variable.
Perhaps a simple dot after 32 may do the magic. But you have to assign it to a new character variable suitably sized.
Thank you for the help:)
When steps fail, please post the whole log of such a step by using the {i} button (to preserve content, formatting, and positioning).
What you most likely want to do
External_nbr_new = put(External_nbr,32.);
You have to create a new variable, as you can't change the type of an existing variable.
Thank you:)
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.