IS MISSING and IS NOT MISSING Operators in SAS Programming Last Updated : 23 Jul, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report IS MISSING Operator: Selecting Missing Values Task 1: Suppose you want to select only those observations in which students did not fill their section information. SQL data readin; input name $ Section $ Score; cards; Raj A 80 Atul . 77 Priya B 45 Sandeep A 95 Rahul . 84 Shreya . 44 ; run; data readin1; set readin; where Section is missing; run; Output: Where Section is missing => This would tell SAS to select missing values for variable SECTION. IS NOT MISSING Operator: Selecting Non-Missing Values Task 2: Suppose you want to select only those observations in which students filled their section information. SQL data readin; input name $ Section $ Score; cards; Raj A 80 Atul . 77 Priya B 45 Sandeep A 95 Rahul . 84 Shreya C 44 ; run; data readin1; set readin; where Section is not missing; run; Output: Where Section is not missing => This would tell SAS to select non-missing values. The NOT operator can be used with WHERE statement in many other ways: where the section is not missing and the score is missing; where not (score in (34, 44, 84)); where not (Score between 50 and 90); where NOT(Section EQ "A"); Comment More infoAdvertise with us Next Article If-Then-Else statement in SAS Programming S ShubhamMaurya3 Follow Improve Article Tags : Software Engineering SAS Programming Similar Reads Contains and Between-And operators in SAS Programming BETWEEN-AND Operator: Between Two Numbers Task 1: Suppose you want to select scores whose values are greater than or equal to 50 and less than or equal to 90. SQL data readin; input name $ Section $ Score; cards; Raj A 80 Atul A 77 Priya B 45 Sandeep A 95 Rahul C 84 Shreya C 44 ; run; data readin1; 1 min read Like Operator in SAS Programming LIKE Operator: Pattern Matching The LIKE operator used to select data by comparing the values of a character variable to a specified pattern. It is case sensitive. Task 1: To select all students with a name that starts with the letter S. There are two special characters patterns available for specif 1 min read How to Use & and && Operator in MATLAB? MATLAB is a high-performance language that is used for matrix manipulation, performing technical computations, graph plottings, etc. It stands for Matrix Laboratory. An operator is a symbol that operates on a value to perform specific mathematical or logical computations. They form the foundation of 3 min read How to Create or Modify a Variable in SAS Programming? This will help you to create or modify a variable. It is common to define a new variable based on the existing variable. Let's create a dataset In the code below, we are creating a dataset named as Example1 which is going to store on WORK(temporary) library. In this dataset, there would be a variabl 2 min read If-Then-Else statement in SAS Programming Comparison Operators used while using conditional statements. Symbol Mnemonic Meaning = EQ equals ^= or ~= NE not equal > GT greater than < LT less than >= GE greater than or equals <= LE less than or equals in IN selecting multiple values IF statement Syntax: IF (condition is true) = 3 min read How to drop variables from a dataset in SAS Programming? This topic is regarding how to drop variables from a dataset in SAS. It includes various methods to delete variables from data. In SAS, there are two ways to drop variables: DROP = data set option DROP statement Let's start with creating a data set: SQL DATA outdata; INPUT roll_num gender $ class su 2 min read Like