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
What are various search techniques in cobol? Explain.
What are the different rules for performing sort operation?
Write the code to count the sum of n natural numbers.
What is the difference between PIC 9.99 and 9v99 in COBOL?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What is Pic 9v99 Indicates in COBOL?
Differentiate between structured cobol programming and object-oriented cobol programming.
what happens if parmparameter passes zero bytes to the program
Why did you choose to work with ibm mainframe cobol programming?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
Explain what you understand by passing by value.
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
how do you reference the printer file formats from cobol programs
What is the local-storage section?