What is the difference between SEARCH and SEARCH ALL? What
is more efficient?
Answer Posted / ramana
most of the pionts are covered so far, I would like to add
one more point here,
In search all to get expected results array must be in a
specified order, but search all also works for an unsorted
array but may or may not give the expected results as it
keeps on divide.
Ex1: searching for 10. ** Array is not in order**
40
30
34
70
10
90
Iteration 1: it selects the second half 70,10,90
Iteration 2: It selects 10 n says the value is found.
Ex2: searching for te same 10.
40
10
34
70
30
90
Its follows the same process as in 1st case, but here 10 is
not there in the second iteration so it says value not
found, but it is present in the first half, this happens
because aray is not sorted.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Name the divisions, which are available in a cobol program?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
What is the difference between PIC 9.99 and 9v99 in COBOL?
) How do u handle errors in BMS macro
Why would you use find and get rather than to obtain?
how to refer the data field?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
Can you please let me know the centre name of INS certification in Kolkata.
What is a scope terminator give example?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
IF I mention stop run in CICS what happens?
how can i see junk values in dclgen or in hostvariable of comp ?
how to access the file from prodution from changeman tool and to submit a file to production
Define static linking and dynamic linking.