truncate on DB2
Moderators: chulett, rschirm, roy
truncate on DB2
I am doing a simple transfer from one SQL table to another. Table b is a copy of table a (same column definitions). However, when I run a job to copy data from table a to table b, all character fields truncate at 10 characters. The Table Definition for both columns is a length of 12. The same transfer works using SQL DTS. Any ideas? Thanks.
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
The column size is 12 for the particular column I'm testing with for both the Source and Target. Interesting new information, when I View Data from the source, it truncates to 10 characters and then adds 2 blank spaces. i.e Source in DB = "AscentialDataStage" View Data from Source = "AscentialD " Target in DB = "AscentialD"
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Did you check Display Width (not Precision)? Display width affects the width used in fixed-width format text files. Precision is part of the SQL data type definition for Char and VarChar data types.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.