Solved

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

Posted on 2006-10-25
5
1,023 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

733 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