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 |
01 a pic s9(5) occupies how many bytes ?
What compiler option would you use for dynamic linking?
Should I use STOP RUN in the sub program??why?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
Hi Guys, I have faced one interview question if I have requirement to add 5 new columns to existing table what are prerequisite do i need to take.
I have a table with 3 dimensions like this : 01 ws-table 04 ws-page occurs 3 08 ws-column occurs 2. 12 ws-record occurs 20 pic x(40). How to code with PERFORM varying with 3 dimension...I forgot..
What is the linkage section?
what is call by value and call by reference ?
3 Answers Infosys, ITC Indian Tobacco Company,
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
how to fetch the record before the last record in a cobol file( its a huge file and if the key field is not known)
TO abend the data sholud open in which mode? 1.new 2.old 3.mod 4.shr
What is the difference between CONTINUE & NEXT SENTENCE ?