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 |
i have two file one is ksds another one is esds i want store matching records in flat file how to you matching.
Which is the best IBM mainframe Training Institute in Ameerpet, Hyderabad
01 a pic s9(5) occupies how many bytes ?
How can you declare the file ?
What is the maximum data length for Numeric DataType ?
88 level entry is used for (a) data items in WORKING-STORAGE SECTION (b) items with RENAMES clause (c) condition-names (d) None of the above
what is qualification on occurs clause?
How many divisions we have in Cobol ?
Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?
i need the code for this program in cobol. 2 + 1 = 3 4+3=7 6+5=11 8+7=15 10+9=19
Can we use redefine clause in occurs clause?
what is the difference between occurs and occurs depending on? i dont think so there is the difference in storage..then why we should use occurs depending on?