what happend with out using Commit,when closing cursor and
program?
Answer Posted / harish
yes, commit-it will save the changes that we done to db2
table
when operation is performed successfully table will be auto
committed its default,suppose if any abends occur all
changes will be rolled back , table will come to original
status
since while updating millions of records somewhere some
abend occurs that time its better to have commit ,so till
upto abend whatever changes occured in table will be
saved.....
pls let me know if u have any queries
HARISH POOMGAME SHIVAPPA
NIIT TECHNOLOGY
KOLKATA
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is a collection in db2?
What is node in db2?
Mention some fields that are a part of sqlca.
Mention the different locking levels that are available in db2.
How can deadlocks be resolved?
What is temporal table in db2?
Which component is responsible for processing sql statements and selecting access paths?
Mention the downsides of page level lock.
Which components manage deadlocks in db2?
When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?
What is difference between rollback and commit?
What is db2 bind?
SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.
What is the physical storage length of time data type?
B37 abend during spufi?