BookmarkSubscribeRSS Feed

[keywords match] 데이터 파싱 후 결합(Parsing Match)

Started ‎06-11-2020 by
Modified ‎06-11-2020 by
Views 96

* 질문 : http://cafe.daum.net/statsas/B3m/14685

 

파싱값을 조인 조건에 사용하시려면 아래와 같이 하시면 됩니다, 단, 카테시안조인(다:다) 조인과 대용량 자료 시 속도 문제가 발생 할 수 있습니다.

DATA BACK;
INPUT X $10.;
CARDS;
BOY
GIRL
;

DATA BACK1;
INPUT X $20.;
CARDS;
I AM A BOY
I AM A GIRL
I AM A GIRL2
;

PROC SQL;
CREATE TABLE BACK2 AS
SELECT A.X AS X1,
B.X AS X2
FROM BACK A
LEFT JOIN BACK1 B
ON B.X LIKE '%'||TRIM(A.X)||'%' ; 

QUIT;

Version history
Last update:
‎06-11-2020 10:41 PM
Updated by:
Contributors

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Article Labels
Article Tags