Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
DB2 LOAD utility for conditional load

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

New User


Joined: 06 Mar 2006
Posts: 35

PostPosted: Sat Jun 23, 2007 2:52 am    Post subject: DB2 LOAD utility for conditional load
Reply with quote

Hi,

1. I have a file that is Comma delimited and i want to use this file to load the data. How should be my load card or where can i mention that the file is comma delimited.

2. I have some characters in the file 'yyyy' and when it sees those characters it should insert nulls in that particular coulmn so how can i say this in the load card or where can i mention that when u see yyyy insert nulls.

Thanks
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: Sat Jun 23, 2007 3:51 am    Post subject:
Reply with quote

Hello,

If you look in the db2 documentation that is linked to via "Manuals" at the top of the page, you can find the syntax to specify a delimiter (i believe it is COLDEL ',' and goes in the LOAD control statement).

I am not sure that you can replace yyyy with nulls as part of the load. The same manual will have that information if it is possible.

You could pass the load file replacing the yyyy value(s) with whatever you wanted.
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 CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm
No new posts NULLFILE on ICEGENER Utility Ashishpanpaliya DFSORT/ICETOOL 5 Wed Nov 08, 2017 10:45 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Conditional highlighting of rows in I... packerm CLIST & REXX 2 Thu Sep 21, 2017 6:50 pm
No new posts How to Use DebugTool CodeCoverage Uti... neo4u IBM Tools 0 Thu Jun 22, 2017 6:38 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us