Hi,
I am facing the following problem in data transformation
The source is an ebcdic file,
1. source column details:
column name : AB_CD
column attribute : Decimal(1,0)
column value : 1
2. Transformation details:
straight mapping
even tried DecimalToString(AB_CD)
3. target column details:
column name : YY_ZZ
column attribute : char ( 8 )
column value : "1."
The problem is the additional "." which I am getting in the output, the same is propogating after load to the database.
How can I get rid of the "." charater, I need "1" as the output.
DecimalToString conversion
Moderators: chulett, rschirm, roy
DecimalToString conversion
rakesh bhatia
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Convert(Link.YY_ZZ,'.','') will remove the period.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
Thanks Ray for the prompt reply.
As I have mentioned my source is an ebcdic file.
In ebcdic representation integer is internally stored as binary and decimal is internally stored in packed decimal format.
since i am reading them using Complex flat file, i read this source field as decimal and cannot read as integer as per my understanding.
So how can i do the conversion from decimal to integer and then charater? in oder to get the desired output?
Any pointers?
Thanks!
Rakesh
As I have mentioned my source is an ebcdic file.
In ebcdic representation integer is internally stored as binary and decimal is internally stored in packed decimal format.
since i am reading them using Complex flat file, i read this source field as decimal and cannot read as integer as per my understanding.
So how can i do the conversion from decimal to integer and then charater? in oder to get the desired output?
Any pointers?
Thanks!
Rakesh
rakesh bhatia
-
- Participant
- Posts: 8
- Joined: Mon Jun 18, 2007 5:11 am
- Location: Mysore