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
Write a cobol program making use of the redefine clause.
Write the code implementing the perform … varying.
What type of SDLC u followed? Why?
What is amode(31)
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
Explain what you understand by passing by value.
What kind of error is trapped by on size error option?
What is Pic 9v99 Indicates in COBOL?
Mention the guidelines to write a structured cobol program?
State the various causes of s0c1, s0c5 and s0c7.
What is a report item?
how do you reference the rrds file formats from cobol programs
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps