Solved

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

Posted on 2006-10-25
5
1,009 Views
Last Modified: 2008-01-09
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...
0
Comment
Question by:kwebster7327
  • 2
  • 2
5 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 17808296
>>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
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 17808307
Oops!  I see that is SSIS, so it should be: "You will have to use some .NET code to convert that."
0
 
LVL 30

Expert Comment

by:nmcdermaid
ID: 17808338
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
 
LVL 1

Author Comment

by:kwebster7327
ID: 17824945
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
 
LVL 30

Accepted Solution

by:
nmcdermaid earned 500 total points
ID: 17825037
hehe if you've found your answer I beleive you post a comment in the admin section.

N
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now