what is exception and how many types of exception



what is exception and how many types of exception..

Answer / venkat

1. File exception
e.g. Undefined record type or a device error, Record lock, Update operation attempted without a prior read
2. Program exception
e.g. Divide by zero, array index out-of-bound, Invalid Date, Time or Timestamp value.


We can see all the program/file related system messages using the command below:
DSPMSGD RANGE(*FIRST *LAST) MSGF(QRNXMSG) DETAIL(*BASIC)

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More DB400 Interview Questions

Define interactive jobs and batch jobs

6 Answers  


When we use any keyword like FIFO,LIFO, at file level but whenever we check by runqry we couldn't find answer in FIFO,LIFO,FCFO etc so how we check the answer.

2 Answers  


What is open data path? And what is the difference between access path and open data path?

1 Answers  


what is dynslt and why we use that command when do we use command

2 Answers   Active Brains, UHG,


How to index LF by relative record no (RRN)

0 Answers  


what is error handling concepts in cl

3 Answers   Active Brains,


what is open data path? and what is the diff b/w access path and open data path?

3 Answers   Cap Gemini,


When we create a pf and did not fill up maint parameter, then by default which access path will the system take & why?

0 Answers  


What is the difference between access path and open data path?

0 Answers  


Can we concatenate fields in physical file? If yes how can we do?

0 Answers  


pls anyone explain about compile time array,pre run time array run time array

4 Answers  


Suppose I have a pf,it contains 5 members,how to access particular member data from logical file ?and what is the use of member in pf?

0 Answers  


Categories