I have a fixed width flat file containing a field with character data type, such as,
Code: Select all
ab dfa adfa
adie ab dsf
dfe adf abe
I have a lookup flat file which contains just one character field, such as,
I need to pull out those records which contain strings from lookup file. And I need to be able to specify if it can be present at the start, in the middle, or at the end. For example, consider the string, 'ab'. If I need to pull out records where ab is present at the start, I now do
. If ab is to be present in the middle, I now do
. These grep commands have worked in the past because the lookup file was small. Now it was grown to over 18000 records.
How do I implement this in DataStage? The existing lookup stage only looks for exact matches of the lookup field value. But that will not get my expected results.
Any ideas will be appreciated.
Attitude is everything....