Hi!,
I am using the IMPORT procedure to put the excel file in sasuser.data
Now some of the columns in the file has character values (non-numneric) ...when I try to delete the "." entries in the columns containg the character values using the standard array method.. then it is giving me errors...
data sasuser.data2;
set sasuser.data;
array cc {*}city country;
do i=1 to 2;
if cc{i}=. then delete;
end;
run;
the log file says that it is converting the values to numeric values....
By using the Import procedure ...does SAS automatically detects that the values are numeric or characters??
Or should I use the infile statement and then do the above arry method!
Any suggestions !!
Thanks a lot!!
I am using the IMPORT procedure to put the excel file in sasuser.data
Now some of the columns in the file has character values (non-numneric) ...when I try to delete the "." entries in the columns containg the character values using the standard array method.. then it is giving me errors...
data sasuser.data2;
set sasuser.data;
array cc {*}city country;
do i=1 to 2;
if cc{i}=. then delete;
end;
run;
the log file says that it is converting the values to numeric values....
By using the Import procedure ...does SAS automatically detects that the values are numeric or characters??
Or should I use the infile statement and then do the above arry method!
Any suggestions !!
Thanks a lot!!