whats the difference between search and search all?

Answer Posted / siddu

search is sequential search.in this data need not be in
sorted ordern sorted order. while dealing with less amount
of data search is much efficeint

searchall is binary search. here data must be in sorted
order. while deeling with lorge amount of data searchall is
efficient

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

934


i need a small 3d program using inline and outline.

1640


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

717


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.

5065


What is a report item?

741






What is a scope terminator give example?

657


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5695


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6834


What are the different types of condition in cobol and write their forms.

658


What is the use of intialize verb?

750


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

744


how to move the records from file to array table. give with code example

2221


What is the difference between Global and External Variables?

666


State the various causes of s0c1, s0c5 and s0c7.

665


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1944