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 redefines clause in COBOL?

927


What are the different open modes available in cobol?

822


Which mode is used to operate the sequential file?

800


How many bytes S(8) comp field occupy and its maximum value?

1745


How do you get the data to code the BMS macro?

1569






i need a small 3d program using inline and outline.

1748


Why occurs cannot be used in 01 level in COBOL?

808


) how do u code after getting data?

1657


how do you reference the printer file formats from cobol programs

766


What are the different rules to perform a Search?

702


Name the divisions, which are available in a cobol program?

799


Give some examples of command terminators?

849


Why would you use find and get rather than to obtain?

777


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5230


How are the next sentence and continue different from each other?

875