01-23-2017 05:38 AM
I need to change non missing observations into "X" and keep missing as '.'
I used the below code
array nvar(i) _numeric_;
do i= 1 to dim(nvar);
if nvar(i) ne . then nvar(i)= 'X';
But as the values are numeric and i am converting them as character i get an error.
Can there be any other way in arrays to do
01-23-2017 07:39 AM
Do not however, that doesn't "change" the results, only displays them differently. If you really want to "change" the data, then convert the column to character and then the replace should work fine
Need further help from the community? Please ask a new question.