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
When is inspect verb is used in cobol?
What are the cobol coding sheets?
Explain the configuration section of a cobol program with examples of syntax.
What is a SSRANGE and NOSSRANGE?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What rules are to be followed while using the corresponding options?
What is an in line perform? When would you use it? Anything else you wish to say about it.
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What are the different rules to perform a Search?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
What is inspect in cobol ?
how to convert the recors form vsam file to db2 table tru file aid
What is the difference between next sentence and continue in cobol programing language?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?