FIELD function
Posted: Fri Jan 21, 2011 4:57 am
I am aware of the function FIELD in transformer that
FIELD(Lnk_InLoad.COLUMN1,';',1) will return the first value store before semicolon.
However, I have a requirement which a column contained of multiple value separated by pipe. There is no fixed number of value will store within the column.
header col1","col2","col3","col4
eg. 001","GRH","DR|PH|JH|ST","2007
above sample data is delimiter with double-quote-comma-double-quote.
And the multiple value column is DR|PH|JH|ST
How do I achieve in such that i will need to separate one row of data into several rows depend on the number of value stored in the column (col3)
Thanks in advance for your help.
FIELD(Lnk_InLoad.COLUMN1,';',1) will return the first value store before semicolon.
However, I have a requirement which a column contained of multiple value separated by pipe. There is no fixed number of value will store within the column.
header col1","col2","col3","col4
eg. 001","GRH","DR|PH|JH|ST","2007
above sample data is delimiter with double-quote-comma-double-quote.
And the multiple value column is DR|PH|JH|ST
How do I achieve in such that i will need to separate one row of data into several rows depend on the number of value stored in the column (col3)
Thanks in advance for your help.