05-22-2012 12:06 PM
If I merge two datasets where the first dataset does not include variable A and the second dataset includes the character variable A, then SAS will create a numeric variable A because this dataset was not set as the first dataset in the merge. Can I force SAS to keep A as a character variable although it is set as a second dataset in a merge?
set var_b_c textvar_a;
If I have thousands of variables it is tricky to do it manually.
05-24-2012 04:05 AM
Unable to reproduce the error using SAS 9.2.
set work.WithoutName sashelp.class;
proc print data=sashelp.vcolumn(where=
(memname = 'TEST' and upcase(name) = 'NAME'))
var libname memname memtype name type;
Proc print shows:
libname memname memtype name type
WORK TEST DATA Name char