Dhruv Nautiyal
Dhruv Nautiyal

Reputation: 129

Converting numeric value to character,

Hi i have a column Age which is numeric i want to convert all its values to character

I am trying the code below. This code gives me error:

ERROR 85-322: Expecting a format name

DATA Diary2;
SET Diary;
FORMAT AGE2 = PUT(AGE, $6.);
RUN;

Upvotes: 0

Views: 529

Answers (1)

data _null_
data _null_

Reputation: 9109

This would be the correct syntax for the assignment statement to create the new variable AGE2.

AGE2 = PUT(AGE, 6.);

Upvotes: 1

Related Questions