IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

With BMC load can we update an existing record


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sriram K

New User


Joined: 17 Feb 2009
Posts: 32
Location: Bangalore

PostPosted: Tue Mar 24, 2009 7:23 pm
Reply with quote

With BMC load can we update an existing record in the table. Will the new value im passing will get updated?

When i trying to update some records, the records whihc im trying to pass is going into error file as duplicate.
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Tue Mar 24, 2009 8:40 pm
Reply with quote

Please post your control cards here.
Back to top
View user's profile Send private message
Sriram K

New User


Joined: 17 Feb 2009
Posts: 32
Location: Bangalore

PostPosted: Wed Mar 25, 2009 9:44 am
Reply with quote

LOAD DATA
REPLACE ( Instead of this Replace If i give RESUME YES - Can i update the records)
LOG NO
CHECKPEND NO
UPDATEDB2STATS YES
ENUMROWS (,150000)
INTO TABLE PABC0.ABCDE

(AAA_name POSITION(1:4) INTEGER
,BBB_dob POSITION(5:5) CHAR(1)

)
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Mar 25, 2009 9:53 am
Reply with quote

Hello,

If some of the columns/keys are defined as unique any update that causes a duplicate condition will be prevented.

Somewhere in the process the value ablut to be used to update must be checked to see if it already exists.

This same consideration should be checked for the condition wiere 2 of the "new" values are duplicates. They don't duplicate any existing values, but they might duplicate each other fro the new population..
Back to top
View user's profile Send private message
Sriram K

New User


Joined: 17 Feb 2009
Posts: 32
Location: Bangalore

PostPosted: Wed Mar 25, 2009 10:09 am
Reply with quote

My understanding was like BMCLOAD utility is only for loading or unloading. But it was like we can even update an existing record with the help of BMCLOAD. Is my understanding correct?

If we can update a record with BMCLOAD can you please tell me what is the specific keyword we need to inclulde in the CNTL card for updating. I thought it was RESUME.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Load new table with Old unload - DB2 DB2 6
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
Search our Forums:

Back to Top