What is the difference between SEARCH and SEARCH ALL?

Answer Posted / karan

search is linear search. search the data based on condition.
search can work with multiple when conditions.
data is no need sorted order.
when ever we searching the data index clause must be used.
this will take more time compare with search all.

Search all:Binary search.
data must be a sequence either ascending or descending order .
only one when condition can be used.
this will take less time

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to move the records from file to array table. give with code example

2212


What is a SSRANGE and NOSSRANGE?

810


When is inspect verb is used in cobol?

669


What is the difference between external and global variables in COBOL?

806


What is perform what is varying?

696






What rules are to be followed while using the corresponding options?

627


how can i see junk values in dclgen or in hostvariable of comp ?

2536


What do you understand by psb and acb?

659


How do u write test cases?

1631


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

619


What is amode(24)?

678


Give some examples of command terminators?

749


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

728


What is the default value(s) for an initialize and what keyword allows for an override of the default?

687


What is cobol?

736