Answer Posted / kiran
Record split into 2 halfs
compare last value of 1st half and 1st value of 2nd half
ex
we have 100 numbers
if we give 58
1-50 51-100
1st half second half
it ill check the last value of 1st half it is 50 and 1st
value of 2nd half it is 51
so it ill omit 1st half contains 1-50
again 51-100 split in 2 halfs
51-75 75-100
1st half 2nd half
it ill check the last value of 1st half it is 75 and 1st
value of 2nd half it is 100
so it ill omit 2nd half contains 75-100
like that process ill continue upto we get desired element
plz correct if i m worng
Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
Have you used comp and comp-3 in your project? And how?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What are the different rules of SORT operation?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
what is difference between cobol and cobol/400
What is amode(24)?
What is cobol?
What is comp-1 and comp-2?
Write the code to count the sum of n natural numbers.
Write some characteristics of cobol as means of business language.
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Can you please let me know the centre name of INS certification in Kolkata.
what is the use of outrecord?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?