BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Peter_Wine
Calcite | Level 5
Hi All, I'd like to use splitter to split data based on condition: FILED1 NOT LIKE "*abc*" I functions: CONTAINS and LIKE are not available in the functions list. I tried to use operator "=*" but it also doesn't work NOT FIELD1 =* '%abc%' Any advise? regards, Piotr
1 ACCEPTED SOLUTION

Accepted Solutions
LinusH
Tourmaline | Level 20

The splitter transformation is using a data step, and IF statements, hence WHERE specific syntax is not available.

See this link on how to mimic LIKE and CONTAINS in an IF statement.

 

https://documentation.sas.com/?docsetId=lestmtsref&docsetTarget=p1cxl8ifdt8u0gn12wqbji8o5fq1.htm&doc...

Data never sleeps

View solution in original post

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Please provide an example, or clear text on what your issue is.  Are you saying that you are used to the SQL syntax like?  If so this post might help.

http://support.sas.com/kb/43/303.html

 

If not, please clarify.

LinusH
Tourmaline | Level 20

The splitter transformation is using a data step, and IF statements, hence WHERE specific syntax is not available.

See this link on how to mimic LIKE and CONTAINS in an IF statement.

 

https://documentation.sas.com/?docsetId=lestmtsref&docsetTarget=p1cxl8ifdt8u0gn12wqbji8o5fq1.htm&doc...

Data never sleeps

SAS Innovate 2025: Call for Content

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!

Submit your idea!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 757 views
  • 1 like
  • 3 in conversation