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
How you can read the file from bottom?
What is the local-storage section?
Why would you use find and get rather than to obtain?
What are the various section in data division and briefly explain them.
How arrays can be defined in COBOL?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
Give some examples of command terminators?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
how do you reference the printer file formats from cobol programs
Mention the guidelines to write a structured cobol program?
What are the different types of condition in cobol and write their forms.
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is Pic 9v99 Indicates in COBOL?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly