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
Answer / chitra
The program will get abended and the error will data
exception error.
| Is This Answer Correct ? | 1 Yes | 0 No |
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 |
Answer / suresh
The program will get abended and the error will data
exception error.
| Is This Answer Correct ? | 0 Yes | 0 No |
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 |
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 |
Difference between file status codes 02 and 22.... since both are for duplicate key detection.
What is difference between COBOL and VS COBOL II?.
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
How do get the result of your program directly on your pc?
how many maximum no of variables can be declared in linkage section ?
what is the difference between implicit and explicit scope terminator with example?
If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??
What will happen if we try to create GDG (+2) generaton instead of (+1) generation?
what are the error codes in cobol, db2, cics, vsam , and jcl
In file1 have 80 records are like d1,d2,d3......D80. File2 have 1000records are like a1d1,a1d2,a3d3.....Etc. I want matching records in file3 ? Plse tell me the matching logic???I want answer only in cobol ?Not using any tool or jcl?
waht is inspect verb? where it can be in real time?
What is the difference between Structured COBOL Programming and Object Oriented COBOL ?