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 Need help on TDQ load from file using... subratarec CICS 4 Wed Jun 13, 2018 11:32 pm
No new posts can we hardcode a value in db2 load c... ram_vizag DB2 2 Wed Feb 28, 2018 11:04 pm
No new posts load and delete table through JCL wit... ram_vizag JCL & VSAM 9 Thu Feb 01, 2018 12:47 am
No new posts Conditional setting of return-code af... sanvan COBOL Programming 9 Wed Jan 31, 2018 11:05 pm
No new posts Utility for search operation Gopalakrishna551 TSO/ISPF 11 Wed Jan 03, 2018 11:07 am

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