What is the purpose of the WHENEVER statement?



What is the purpose of the WHENEVER statement?..

Answer / s

WHENEVER is used to specify whether to continue processiong
or branch to another area in your program.

EXEC SQL
WHENEVER CONDITION ACTION
END-EXEC

CONDITION can be SQLWARNING, SQLERROR, NOT FOUND conditions

The ACTION can be CONTINUE or GO TO to branch to another
area in your program

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

How to see the structure of db2 table??

4 Answers   IBM,


Why do we use cursor?

0 Answers  


For update of a row in cursors, when do we move value into host variable in cobol progrm? is it before open or before fetch ?

2 Answers   iGate,


Can DB2 be accessed by TSO users? If yes, which command is used to invoke DB2?

1 Answers  


What is table space in db2?

0 Answers  






What is null indicator in db2?

0 Answers  


Explain the EXPLAIN statement?

1 Answers  


Explain about mirror activator disk mirroring?

0 Answers  


How do you define a correlated name?

1 Answers  


How is the SUBSTR keyword used in sql?

1 Answers  


What do you mean by commit and rollback?

0 Answers  


What types of tables are there in the db2 database?

0 Answers  


Categories