![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello everyone, Newbie with DTS here. I am trying to port in a flatfile with the following format, abc|123^456^789|testing1 def|333^444^789|testing2 hij|444^^789|testing3 I am able to use the build-in GUI feature to set the delimiter to {|} however, I would like to see some activeX scripting examples that can further delimit the numbers inside the ^. For example, at the end I want to separate them and port it into 5 different columns, abc 123 456 789 testing1 def 333 444 789 testing2 hij 444 789 testing3 Thanks for any suggestions! -curry |
#3
| |||
| |||
|
|
You will need to read it through an Active Script transform. You could read the line and treat it as one string. In the Active Script transform you split things up and allocate to the destination column accordingley. Allan -- Allan Mitchell Konesans Ltd T +44 7966 476 572 F +44 2071 008 479 http://www.konesans.com emailcurry (AT) gmail (DOT) com> wrote in message news:1154545121.868860.7540 (AT) b28g2000cwb (DOT) googlegroups.com... Hello everyone, Newbie with DTS here. I am trying to port in a flatfile with the following format, abc|123^456^789|testing1 def|333^444^789|testing2 hij|444^^789|testing3 I am able to use the build-in GUI feature to set the delimiter to {|} however, I would like to see some activeX scripting examples that can further delimit the numbers inside the ^. For example, at the end I want to separate them and port it into 5 different columns, abc 123 456 789 testing1 def 333 444 789 testing2 hij 444 789 testing3 Thanks for any suggestions! -curry |
![]() |
| Thread Tools | |
| Display Modes | |
| |