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 |
I have dataset DS1 which has records say 1 2 3 4 5 ... ... etc And also I have second dataset DS2 whcih has records 1 3 4 5 6 8 .. ... Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.
record length in spool?
What is the linkage section?
i have the following varibles in the working storage 05 ws-A PIC X(30) VALUE 'ABCDEFGHIJKLMNOPQRESTUVWXYZ ' 05 WS-B REDEFINES WS-A 10 WS-B1 PIC X(10). 10 WS-B2 PIC 9(10). 10 WS-B3 PIC X(10). If I Display B1, B2 and B3 respectively, what is the value displayed in B2
if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what should be my output ?
example for sub strings ? and refernce modifications whit output pls
0 Answers College School Exams Tests, IBM,
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What are the different rules of SORT operation?
What is the difference between a binary search and a sequential search?
what is the difference between Plan & package?
When is inspect verb is used in cobol?
Why would you use find and get rather than to obtain?