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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a SSRANGE and NOSSRANGE?

819


what happens if parmparameter passes zero bytes to the program

1661


how to move the records from file to array table. give with code example

2218


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

656


Which mode is used to operate the sequential file?

658






How do define dynamic array in cobol.

669


What is the difference between PIC 9.99 and PIC9v99?

777


how do you reference the variable block file formats from cobol programs

682


Difference between array and sub-script ?

1159


What are all the divisions of a COBOL program?

662


What are the different data types in cobol?

787


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10581


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

734


What is the local-storage section?

681


What is the difference between comp and comp-3 usage?

676