Dreamslogic
asked on
SSIS Expression
Hi Guys,
Input: ProductCatalog_181416_2010 0513010253 _2010517_2 2715_20107 15_172740
Expression Used: SUBSTRING(@[User::FileName ], FINDSTRING(@[User::FileNam e], "_", 1) + 1, FINDSTRING(@[User::FileNam e],"_",3) - FINDSTRING(@[User::FileNam e],"_",1)- 1)
Output Getting: 181416_20100513010253
Out Put Required : 181416_20100513
Can please help he out how to get above output.
Thanks,
Input: ProductCatalog_181416_2010
Expression Used: SUBSTRING(@[User::FileName
Output Getting: 181416_20100513010253
Out Put Required : 181416_20100513
Can please help he out how to get above output.
Thanks,
ASKER
No thats not the same it changes. Here are the examples
ProductCatalog_141199_2010 0527164603 .CSV_20106 9_20144_20 10625_1917 48_2010714 _142617
ProductCatalog_132700_2010 0706024658 .CSV_20107 10_185129
ProductCatalog_182404_0307 2008_20107 7_201082_0 5439
Output Required example:
141199_20100527
132700_20100706
182404_03072008
ProductCatalog_141199_2010
ProductCatalog_132700_2010
ProductCatalog_182404_0307
Output Required example:
141199_20100527
132700_20100706
182404_03072008
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if so try
SUBSTRING(@[User::FileName