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;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.