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
Give some examples of command terminators?
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.
Explain what you understand by passing by value.
What is rmode(any) ?
How do you reference the following file formats from cobol programs?
Why did you choose to work with ibm mainframe cobol programming?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
how to refer the data field?
What is inspect in cobol ?
how do you reference the fixed unblock file formats from cobol programs
Mention the guidelines to write a structured cobol program?
What is the difference between comp and comp-3 usage?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
) How do u handle errors in BMS macro?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?