Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have the following piece of data
Statement : I love singapore
Statement : An Apple.
Now I am using subfiled to split the string subfield(Statement,' ').
The output i am looking for is
love
Singapore
Apple
i.e., i want remove all the substrings whose length is less than 4.
Please provide your thoughts on how to implement this.
Regards,
Amar
Hi,
TestData:
Load * Inline [
Statement
I love India
I love World
Community is Best
];
FieldList:
Load * where Len(vSubField) >= 4;
Load
SubField(Statement, ' ') as vSubField
Resident TestData;
Hi,
if(len(subfield(Satatement,' ')>=4,subfield(Statement,' '))
Hope it helps you.
Regards,
Khadeer
Hi,
See the attachment.
try this:
Load
if(len(subfield(trim(Satement),' '))>=4,subfield(trim(Statement),' ')) as NewStatement
Hi Venugopal,
I am using a personal edition. Kindly post the script here
Hi,
TestData:
Load * Inline [
Statement
I love India
I love World
Community is Best
];
FieldList:
Load * where Len(vSubField) >= 4;
Load
SubField(Statement, ' ') as vSubField
Resident TestData;