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
 

 

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 DB2 - TERMINATE utility vasanthz DB2 5 Mon May 15, 2017 11:49 pm
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


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