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
What is a SSRANGE and NOSSRANGE?
what happens if parmparameter passes zero bytes to the program
how to move the records from file to array table. give with code example
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
Which mode is used to operate the sequential file?
How do define dynamic array in cobol.
What is the difference between PIC 9.99 and PIC9v99?
how do you reference the variable block file formats from cobol programs
Difference between array and sub-script ?
What are all the divisions of a COBOL program?
What are the different data types in cobol?
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 ......
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What is the local-storage section?
What is the difference between comp and comp-3 usage?