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
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
Write a cobol program making use of the redefine clause.
What kind of error is trapped by on size error option?
What is the difference between Call and a Link?
Write some characteristics of cobol as means of business language.
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
What rules are followed by the search verb.
What is the difference between Global and External Variables?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
) how do u code after getting data?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
How to know whether the module is dynamical or statistical?