Integration Services - How to Read/Convert a S9(7)V99 Field

I'm trying to import a flat file. One of the columns I'm trying to import is in S9(7)V99 format with a trailing sign (typical data looks like 00000851L). Is there a way to make SSIS convert this into something like a double precision float (DT_R8) without having to script up my own conversion? This seems like something it ought to do, since data is often formatted like this in exports.

Thanks...
LVL 1
kwebster7327Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
nmcdermaidConnect With a Mentor Commented:
hehe if you've found your answer I beleive you post a comment in the admin section.

N
0
 
Anthony PerkinsCommented:
>>Is there a way to make SSIS convert this into something like a double precision float (DT_R8) without having to script up my own conversion? <<
No.  You will have to create an ActiveX Transformation to convert that.
0
 
Anthony PerkinsCommented:
Oops!  I see that is SSIS, so it should be: "You will have to use some .NET code to convert that."
0
 
nmcdermaidCommented:
You might find something helpful here.

http://msdn2.microsoft.com/en-us/sql/aa336314.aspx

The whole idea of SSIS is that it is configurable. Once you have created this transformation once you can reuse it.... if you are on the ball you could create an entire AS400 SSIS integration library and sell it.
0
 
kwebster7327Author Commented:
Writing a conversion transformation, while possible, appears to be more effort than I want to tackle.

The page at http://docs.hp.com/en/32650-90889/ch06s01.html has a table about halfway down which explains how to do the conversion. Using this, I pretty quickly scripted up the conversion. I just run the incoming file through the script before I start importing.

It's not the way the geeks at MS would do it, but I got it working in about 20 minutes.

How do I award points to myself?

...Ken
0
All Courses

From novice to tech pro — start learning today.