Answer Posted / sachin
Prefer when the table size is significantly large.
When the size of the table is large and it is arranged in
some sequence -either ascending or descending on search
field, then BINARY SEARCH would be the efficient method.
Table should be in sorted order of the searching argument.
There should be ASCENDING/DESCENDING Clause.
Index need not be set to 1 before SEARCH ALL.
Compare the item to be searched with the item at the
center. If it matches fine, else repeat the process with
the left or right half depending on where the item lies.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
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.
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
example for sub strings ? and refernce modifications whit output pls
What are the rules of the move verb?
How many sections are there in data division in COBOL?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
) How do u handle errors in BMS macro?
What is the difference between PIC 9.99 and PIC9v99?
How do you reference the following file formats from cobol programs?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How do you get the data to code the BMS macro?
what is amode(24), amode(31), rmode(24) and rmode(any)?
how do you reference the esds vsam file formats from cobol programs
) how do u code after getting data?