10-13-2013 04:42 PM
I have something like
merge dataset1 dataset2;
if var=1 then var='large';
Now, the variable var is extracted from datasets 1 and 2 with a numeric format;however 'large' and 'small' are character and this generates errors.
How can I transform from numeric to character within the data step as created above?
I tried adding "format var $6.;" but this did not solve the problem.
10-13-2013 05:33 PM
Do you really want to assign new values? Or, on the other hand, do you simply want the character values to appear in lists, reports and or analyses? If it is the latter, you can create and assign a format.
Need further help from the community? Please ask a new question.