What are the two search techniques ?

Answer Posted / vish

If you talk in COBOL, then yes we have type os searches -
sequential search and Binary search.

Syntax:
SEARCH - Sequential
SEARCH ALL - Binary

It is important to note that for the Binary search the
input file (or table) must be sorted order else the result
of the SEARCH ALL will be wrong.

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the utilization of copybook in cobol?

650


What is cobol?

739


What is the difference between a binary search and a sequential search what are the pertinent cobol?

726


Can we change the password using ALTER? anyone tried and changed?

1542


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

2099






What is the difference between Call and a Link?

694


Whats the difference between search & search ALL?

5248


) what is the difference between AID and HANDLE AID?

1628


What type of SDLC u followed? Why?

1516


what is the use of outrecord?

1765


What is the Purpose of POINTER Phrase in STRING command in COBOL?

713


What kind of error is trapped by on size error option?

735


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1774


What is rmode(any) ?

678


How arrays can be defined in COBOL?

661