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
 

 

Loading Data to DB2 table using delimited data

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

New User


Joined: 03 Mar 2006
Posts: 18

PostPosted: Tue Nov 06, 2007 4:56 am    Post subject: Loading Data to DB2 table using delimited data
Reply with quote

Hello,

I am trying to load data into a DB2 table using DSNUTILB-LOAD utilility. The data is delimited by ';'. There are lot of DECIMAL(COMP-3) fields in the data. I am receiving 'conversion error' on these fields.

Can't I load delimited decimal data using LOAD utility? Is there a work around(except specifying positions)? I have about 100 fields to be loaded into the table.

Thank You.
Back to top
View user's profile Send private message

Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 964
Location: Richmond, Virginia

PostPosted: Tue Nov 06, 2007 6:39 am    Post subject:
Reply with quote

I think comma-delimited LOAD began with version 8. What are you on?
Back to top
View user's profile Send private message
mfstudent1
Currently Banned

New User


Joined: 03 Mar 2006
Posts: 18

PostPosted: Tue Nov 06, 2007 7:12 am    Post subject: Reply to: Loading Data to DB2 table using delimited data
Reply with quote

I am on DB2 Version 8
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 964
Location: Richmond, Virginia

PostPosted: Tue Nov 06, 2007 6:51 pm    Post subject:
Reply with quote

I think the default delimiter is comma, but there is a parm that let's you redefine it as, in your case, semi-colon.

Have you done that?
Back to top
View user's profile Send private message
mfstudent1
Currently Banned

New User


Joined: 03 Mar 2006
Posts: 18

PostPosted: Tue Nov 06, 2007 7:58 pm    Post subject: Reply to: Loading Data to DB2 table using delimited data
Reply with quote

Phrzby Phil,
Yes..I have redefined the coldel to ';'
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 Paasing symbolic parameter to instrea... Anirudh Anand JCL & VSAM 1 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 11 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm


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