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

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

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.

View solution in original post

4 REPLIES 4
KachiM
Rhodochrosite | Level 12

Perhaps a simple dot after 32 may do the magic. But you have to assign it to a new character variable suitably sized.

sihlek
Calcite | Level 5

Thank you for the help:)

Kurt_Bremser
Super User

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.

sihlek
Calcite | Level 5

Thank you:)