Size of a column has been changed in DB2 table (Suppose it
was of 5 characters and later changed to 4 characters) and
forgot to change the DCLGEN in COBOL program, what will
happen during the execution of code? If the program Abends
then what will be the error? If it doesn't abend then hpw
the error can be catched?

Answers were Sorted based on User's Feedback



Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed t..

Answer / chitra

The program will get abended and the error will data
exception error.

Is This Answer Correct ?    1 Yes 0 No

Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed t..

Answer / srikanth doki

The error will not be catched at that time. Dclgen will not
check the database tables and the dbrm will check the
database if it is not matched then the data exception error
will be raised at that time.

Is This Answer Correct ?    0 Yes 0 No

Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed t..

Answer / suresh

The program will get abended and the error will data
exception error.

Is This Answer Correct ?    0 Yes 0 No

Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed t..

Answer / ankit

it will work normally until the data fetched is of 4 bytes
but if it will be fetching a data of 5 bytes, then a
exception will occur and program will abend with abend code
SOC7.

Is This Answer Correct ?    0 Yes 1 No

Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed t..

Answer / mohit

Nothing critical will happen.. I will make understand with
example below:

Consider some 2 bytes as * are before that variable as $
and then rest copybook as & , so after changing table
layout will look like:

**$$$$&&&&&& and program will layout as
**$$$$$&&&&&&. So, now what happens table always passes
something as 4 bytes to 5 bytes which easily is compatible
with a bigger space. So, you will see a space actually
which might disturb your output.

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More COBOL Interview Questions

i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?

5 Answers   HCL,


What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(9) VALUE SPACES. 01 WS-VARN REDEFINES WS-VARX PIC 9(9).

8 Answers  


Why we are using comp and comp-3 in real time projects?

4 Answers   IBM,


explain sorting techniques in cobol program?

0 Answers  


I have a seq file with different fields one field is address with pic x(50) as input in a cobol program. In address there is 'PUNE' at any different positions in the address field ( form 1 t0 50) . My requirement is select the fields with address 'PUNE' by using cobol. Please suggest

2 Answers   IBM,






How to read a 100 record from a file through cobol?

2 Answers  


How can you declare the file ?

1 Answers   Wipro,


How to resolve the soc4 and soc7 errors?

5 Answers   IBM, RBS,


Explain how you can characterize tables in cobol?

0 Answers  


Have you used comp and comp-3 in your project? And how?

0 Answers   IBM,


i need a small 3d program using inline and outline.

0 Answers  


hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?

1 Answers  


Categories