MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BMCLOAD Job ..

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
haseen_mohammed
Beginner


Joined: 20 Feb 2006
Posts: 27
Topics: 14

PostPosted: Tue Aug 28, 2007 9:06 am    Post subject: BMCLOAD Job .. Reply with quote

Hi,

While loading data into table from a CSV file using BMCLOAD (Load Replace).
The load card I am having is discarding both the duplicate rows.
i.e if row 1 & 3 are having duplicate keys. It discards both.

The data card I am using is

LOAD DATA INDDN SYSREC RESUME YES LOG NO COPY YES
EBCDIC CCSID(285,65534,65534)
FORMAT CSV TERMINATEDBY ',' ENCLOSEDBY '"' AND '"'
INTO TABLE XXXXX
REPLACE (
Values ..........)

How can I change the datacard in such a way that atleast row 1 will get inserted into the table.

Haseen
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Aug 28, 2007 11:34 am    Post subject: Reply with quote

haseen_mohammed,

Use the parm SQLAPPLY to handle duplicates differently from other load types. For this type of load, if the input file contains duplicate rows, LOADPLUS loads the first one that it encounters and discards any subsequent ones.

Code:

LOAD DATA INDDN SYSREC RESUME YES LOG NO SQLAPPLY COPY YES


Hope this helps..

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group