|
View previous topic :: View next topic
|
| Author |
Message |
morpheus007
New User

Joined: 27 Dec 2005 Posts: 58
|
|
|
|
we have a requirement to load data from a flat file to a DB2 table.The table has an amount field which is declared as DECIMAL(15,2).
We are using the LOAD utility for this.
The syntax in the load that we are using is:
POSITION(61:76) DECIMAL
The data in the file is something like this:
1234567890111.12(13 integers followed by decimal point and 2 decimals)
When this is run it gives a '04' error the description being:
04 an input packed decimal field was in error
There is either an error in the input data format in the file or the way the
load syntax is written.
Kindly let me know if there is a fix for this. |
|
| Back to top |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
| morpheus007 wrote: |
we have a requirement to load data from a flat file to a DB2 table.The table has an amount field which is declared as DECIMAL(15,2).
We are using the LOAD utility for this.
The syntax in the load that we are using is:
POSITION(61:76) DECIMAL
The data in the file is something like this:
1234567890111.12(13 integers followed by decimal point and 2 decimals)
When this is run it gives a '04' error the description being:
04 an input packed decimal field was in error
There is either an error in the input data format in the file or the way the
load syntax is written.
Kindly let me know if there is a fix for this. |
Try POSITION(61:76) DECIMAL external(16,02) |
|
| Back to top |
|
 |
|
|