Like Operator in SAS Programming Last Updated : 23 Jul, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report 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 specifying a pattern: percent sign (%) - Wildcard Character underscore ( _ ) - Fill in the blanks SQL data readin; input name $ Section $ Score; cards; Raj A 80 Atul . 77 Priya . 45 Sandy A 67 David B 39 Rahul . 95 Sahil C 84 Savitri B 65 ; run; data readin1; set readin; where name like 'S%'; run; Output: In a given dataset, the above statements would produce the same result in both cases. Examples: where name like '%ul'; Output: It contains all the data where the name ends with 'ul'. where name like '_ah%'; Output: It contains all the data where the name contains atleast 3 characters, which must contain 'ah' at second place. where name like '_a___'; Output: It contains all the data where the name contains atleast 5 characters, which must contain 'a' at second place. 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 Where Statement in SAS Programming The WHERE statement is a substitute to IF statement when it comes to subsetting a data set. Syntax: WHERE (condition is true) => It refers to subsetting a dataset. Task1 : Suppose you want to select only section A students. You need to filter Section variable equals to A using where clause. SQL d 2 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 SAP ABAP | Report Programming SAP ABAP is a fourth-generation programming language and technical module of SAP that is used to develop SAP-related applications. SAP can be customized using SAP ABAP. It is now used alongside Java as the primary programming language for the SAP application server. Table of Content Understanding SA 4 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 Program Analysis Tools in Software Engineering The goal of developing software that is reliable, safe and effective is crucial in the dynamic and always changing field of software development. Programme Analysis Tools are a developer's greatest support on this trip, giving them invaluable knowledge about the inner workings of their code. In this 4 min read Like