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
 
With BMC load can we update an existing record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: With BMC load can we update an existing record
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: 788
Location: Chennai, India

PostPosted: Tue Mar 24, 2009 8:40 pm    Post subject:
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    Post subject: With BMC load can we update an existing record?
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

Site Director


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

PostPosted: Wed Mar 25, 2009 9:53 am    Post subject:
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    Post subject: With BMC load can we update an existing record
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    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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am

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