yechan
asked on
Convert DTS Transformation script into SSIS
Hi,
I am looking at VB script that looks like the following:
Is there a SSIS task that handles like that?
I am looking at VB script that looks like the following:
Is there a SSIS task that handles like that?
Dim cr_id, tohr, fromhr, record, WeightCalc
record = DTSSource("record")
if rtrim(mid(record, 129,12)) = "" then
record = mid(record, 1,128) + "000000000000" + mid(record, 141)
end if
if rtrim(mid(record,47,8)) = "" then
record = mid(record, 1,46) + "00000000" + mid(record, 55)
end if
If rtrim(mid(record,85,8)) = "" then
record = mid(record, 1,84) + "00000000" + mid(record, 93)
end if
If rtrim(mid(record,97,8)) = "" then
record = mid(record, 1,96) + "00000000" + mid(record, 105)
end if
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks for your input. I think I am going to try to implement this with a "Script Component". The sample code above is a small snapshot of a 15 page script. Thank you. HOpe it's ok if I split the points. I have the feeling I will be quite a bit here for next week or so =)