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
IF I mention stop run in CICS what happens?
how do you reference the variable block file formats from cobol programs
What is inspect in cobol ?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is redefines clause in COBOL?
Explain about different table spaces.
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is amode(24)?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What is the difference between perform … with test after and perform … with test before?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
What do you understand by psb and acb?
Why occurs cannot be used in 01 level in COBOL?