BookmarkSubscribeRSS Feed
naresh1
Calcite | Level 5

Hi All

 

In SAS/ACCESS connect to Snowflake interface  the function REGEXP_REPLACE is searching for exact pattern that we pass in the list of values to filter from DB.

Whereas SAS/ACCESS connect to Greenplum interface the same function REGEXP_REPLACE is searching for all pattern matches that we pass in the list of values to filter from DB. 

 

COLUMN_NAME:

    DD

MA COASTAL AREA

COASTAL AREA

GIS DD

GIS MET

GIS.MET

GIS/ROLLOUT

GIS/DD

 

Condition:

ex: where REGEXP_REPLACE(UPPER(COLUMN_NAME),'\s+$','') in ('COASTAL AREA','DD','MET','ROLLOUT')

 

Greenplum Output:

DD

MA COASTAL AREA

COASTAL AREA

GIS DD

GIS MET

GIS.MET

GIS/ROLLOUT

GIS/DD

 

Snowflake Output:

COASTAL AREA

 

How would i get exact above Greenplum result in snowflake ( without LIBNAME statement and Using explicit pass through facility only ).

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 0 replies
  • 941 views
  • 0 likes
  • 1 in conversation