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: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 804 views
  • 1 like
  • 3 in conversation