I have a code that is coded in .Z character and I would like to know what .Z means.
if .z < LD <= 80 then Test = 1;
Hi @hjjijkkl,
Since .z is the largest of all (numeric) missing values in SAS (._ < . < .a < .b < ... < .z), the condition .z < LD is a convenient way to abbreviate not missing(LD), i.e., numeric variable LD has a non-missing value.
So your IF/THEN statement could also be written as
if not missing(LD) and LD le 80 then Test = 1;
.z is a special missing value. There are 28 different missing values in SAS, the one you are probably familiar is represent by a dot. However, there is also .a, .b, ... ,.z and also ._
So whoever created this code intended .z to indicate missing with a special meaning.
Hi @hjjijkkl,
Since .z is the largest of all (numeric) missing values in SAS (._ < . < .a < .b < ... < .z), the condition .z < LD is a convenient way to abbreviate not missing(LD), i.e., numeric variable LD has a non-missing value.
So your IF/THEN statement could also be written as
if not missing(LD) and LD le 80 then Test = 1;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.