What are the two search techniques ?
Answers were Sorted based on User's Feedback
Answer / 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 |
What is LENGTH in COBOL II?
what is a zoned decimal data type and how it will be stored?
Difference between array and sub-script ?
whats the disadvantage of search all over search?
how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it
What is the Purpose of Pointer in the string?
Write a program to enter and display the names of students in a class using the occurs clause.
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.
Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i do it?
What are all the divisions of a COBOL program?
I have a PS file and I would like to manually insert the binary values (like a COMP format) into the file. How can i do that? the way do in COMP-3 format.. suppose i want to insert -12345 in to file in comp-3 format. simply we can open a file in edit mode and do HEX-ON and insert the value . SEE BELOW-- 135 24D in 3 bytes - this will be COMP-3 presenatation of -12345.