Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Query - Filling decimal values from text file to DB2 table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
komal

New User


Joined: 09 May 2005
Posts: 18

PostPosted: Sat Jan 20, 2007 1:18 pm    Post subject: Query - Filling decimal values from text file to DB2 table
Reply with quote

Hi all

In a DB2 table, different columns r there like

a char(5),
b char(3),
c char(3),
d dec(19,8) - nullable,
e char(100) - nullable,
f char(100) - nullable,
g char(100),
h char(5)

when i extracted the table into a flat file, i got the LOAD form as

LOAD DATA RESUME YES INTO TABLE "KOMAL"."KIRAN"
(A POSITION (7) CHAR (5) ,
B POSITION (12) CHAR (3) ,
C POSITION (15) CHAR (3) ,
D_NUM POSITION (18:27) DEC
NULLIF (1:2)=X'FFFF' ,
E POSITION (28) CHAR (100)
NULLIF (3:4)=X'FFFF' ,
F POSITION (128) CHAR (100)
NULLIF (5:6)=X'FFFF' ,
G POSITION (228) CHAR (100) ,
H POSITION (328) CHAR (5) )

In the flat file i found that the values in 'D' r displayed as special symbols.
The text file which I FTPied from flat file contain the same.

I have 2 doubts here

1. If I am not wrong, the size of that D is 10 bytes so, it is displaying some special symbols for some value like 12345678901.12345678. But how to get the actual value into the flat file instead of special symbols?

2. My source system is sending us a textfille which i have to load into the DB2 table mentioned above. How i can move the actual decimal value from the text file to the column D of the table?

PLZ reply me as soon as possible bcoz i am fighting with this from last 2 days.

KiranChand
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Jan 21, 2007 8:22 am    Post subject:
Reply with quote

Hello,

Please check your original post. . . .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us