Hi All,
I have one field with in DB2 View and that is character datatype. That field is having 3 kind of formats
1. 4MAR17
2. 12367891217
3. 0618
I want a calculated field pointing to the above field and get output as week and year combination (WWYY).
Referring to above point #1, I should get 0817 (08th week of 2017 year). As 4MAR 17 will fall into 8th or 9th week of 2017. And condition is 2017 1st week to be considered from 1st Monday
Referring to above point #2, I should get last right 4 digits of that 11 digit number i.e., 1217 which means 12th week of 2017
Referring to above point #3, I should get same like input i.e., 0618
Then my calculated field contains all this date formats in single format instead of splitting in different formats.
------------------------------
sundeep kotaru
------------------------------
#Db2