Hi smart people. I have the following code: data want; set have; if dep="1309825" then dep="" AND source_dep=. AND indexdate_dep=.; run; dep is a character value(it can contain letters) and is 11 characters long. SAS returns a 0 rather then a blank when i run this and I want a blank. I have tried: if scan(dep,1,"1309825")=1 then dep="" AND ... and the rest, but the result is the same. i Have also tried: if lenght(dep)=7 and dep="1309825" then dep="" AND ... the rest, also with the same result..... How can I make it return a blank and not a zero? thank you
... View more