Skip to main content

While match name

cancel
Showing results for 
Search instead for 
Did you mean: 
penpayom
Contributor
Contributor

While match name

Last Update:

Sep 21, 2022 1:07:35 PM

Updated By:

Sue_Macaluso

Created date:

Dec 21, 2018 12:17:24 AM

Attachments

I Want  to  find and Replace  keyword from "KEY" in Column Result 

but I not used if Loop  because Variety key

please help me

W.PNG

Tags (1)
Comments
Chernov
Creator
Creator

Hi, try this script: 

 

NAME:
LOAD * INLINE 
[NAME
ALICE IN WANDERLAND
PPC NANYANG
#COTTON 65%
POLI925
ALICE IN HOME
PPC NANYANG
#COTTON 65%
POLI925]; 

KEY:
LOAD * INLINE 
[KEY
ALICE
NANYANG
COTTON
RUBBER]; 



JOIN(NAME)
LOAD * RESIDENT KEY;
DROP TABLE KEY;

NOCONCATENATE
RESULT:
LOAD DISTINCT NAME, KEY WHERE FLAG > 0;
LOAD *, SubStringCount(NAME,KEY) AS FLAG
RESIDENT NAME
;

DROP TABLE NAME;

 

Version history
Last update:
‎2022-09-21 01:07 PM
Updated by: