|
View previous topic :: View next topic
|
| Author |
Message |
Kunal Surpurkar
New User
Joined: 15 Nov 2012 Posts: 47 Location: India
|
|
|
|
Dear Team,
I have a requirement wherein, the DB2 tables have to be loaded from the flat files produced from the IMS databases.
The amounts field has PIC as its datatype. There are a few negative amounts as well. In order to load them in a DB2 table, I have used DECIMAL and DECIMAL EXTERNAL data types. But, I am getting the below errors.
112 08:45:27.49 DSNURCON - RECORD (2) WILL BE DISCARDED DUE TO 'IMPOTOT'
CONVERSION ERROR FOR DB2TIVA.IVA_TEST
ERROR CODE '02 - INPUT NUMERIC INVALID'
Would you suggest me the correct DB2 datatype for the amounts fields in PIC, so that they can be loaded successfully in the DB2 table ?
Thanks a lot in advance. |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
| Back to top |
|
 |
Kunal Surpurkar
New User
Joined: 15 Nov 2012 Posts: 47 Location: India
|
|
|
|
Hi Enrico,
First of all, thanks for the quick reply.
And apologies for not being clear enough.
I am using PIC as :
3 IBASEIM PIC'ZZZZZZZZZ9V99-' INIT(0),
3 IIVASOP PIC'ZZZZZZZZZ9V99-' INIT(0),
The file is writing the negative values.
But when I am loading into the DB2 table, it gives me the error stated above.
|
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
if You had clicked on the link I suggested, You would have found already the error and how to fix it  |
|
| Back to top |
|
 |
|
|