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
 

 

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 Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am


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