Reputation: 129
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
Reputation: 9109
This would be the correct syntax for the assignment statement to create the new variable AGE2.
AGE2 = PUT(AGE, 6.);
Upvotes: 1