i am trying to do a simple transformation through DTS. My source column TreatyNumber has values like MRQYP2C2 MRQYP3C2 MRQYP2C2 what i want to do is take the 6th Digit which will be a 2 in the first instance (MRQYP2C2) and put it in my destination column which is TreatyID.I need to know only how to write VB script for this transformation. '********************************************************************** ' Visual Basic Transformation Script '************************************************************************ ' Copy each source column to the destination column Function Main() DTSDestination("TreatyID") = DTSSource("TreatyNumber") Main = DTSTransformStat_OK End Function |