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 |
Read a flat file and write last but one (I have n records in a file I have to write n-1th) record in another flat file. Could you please provide me the code in COBOL?
how to run sub programs using static and dynamic call ...
How to execute a set of JCL statements from a COBOL program?
COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error
What are the different forms of EVALUATE statement?
How much salary you are expecting? If they ask in an interview, what we have to tell?
6 Answers Tech Mahindra, Wipro,
How many sections are there in data division in COBOL?
The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mode what will happen?
Why we should use cursor ?
for an INITIALIZE and what keyword allows for an override of the default.
sample code for read a 2nd record from last in flatfile how can do?
What is "Call by content" and "call by reference"?