Substring function when find a dash
Posted: Mon Nov 17, 2014 11:08 am
All,
Have an issue with the substrng function in server job.
I three columns coming from several DB2 inputs. All having date, description and count. Like,
Date Count Customer_cd
11-10-2014 125 3- Marketing client
I need to have only 3 instead of 3- Marketing client. The code may change so cant use substr(1,1) rather need to find DASH and substring there.
Any help how to achieve this.
Thanks.
Have an issue with the substrng function in server job.
I three columns coming from several DB2 inputs. All having date, description and count. Like,
Date Count Customer_cd
11-10-2014 125 3- Marketing client
I need to have only 3 instead of 3- Marketing client. The code may change so cant use substr(1,1) rather need to find DASH and substring there.
Any help how to achieve this.
Thanks.