what is search and searchall?what is the diffrence between
them?give an best example?

Answers were Sorted based on User's Feedback



what is search and searchall?what is the diffrence between them?give an best example?..

Answer / sid

Search is a leniar search and search all is binary search.
In search all it required to be sorted all the records in
assending or descending order.

Is This Answer Correct ?    10 Yes 0 No

what is search and searchall?what is the diffrence between them?give an best example?..

Answer / naveen

-Search is a linear search, search all is a binary search.
-search is performed in sorted and unsorted record, searchall is only in sorted record.
-in search multiple when clause is used, in search all single when clause is used.
-search is always used in small table, search all is always used in large table.
-Index value is set to 1. in search all no need!

Is This Answer Correct ?    4 Yes 0 No

what is search and searchall?what is the diffrence between them?give an best example?..

Answer / siri

SEARCH SEARCHALL
-------- ---------------*SEARCH IS A LINEAR SEARCH *SEARCHALL IS A BINARY SEARCH
*DATA NEED NOT BE IN SORTED *DATA MUST BE IN SORTED ORDER
ORDER
*SEARCH IS EFFICIENT THAN *SEARCHALL IS EFFICIENT THAN
PERFORM SEARCH
*MULTIPLE WHEN CONDITINS ARE *ONLY ONE WHEN CONDITION IS
SPECIFIED SPECIFIED.
*ANY RELATIONAL OPERATOR(=,<= *ONLY = CAN BE USED
>=)CAN BE USED.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

how to display date in reverse order if the pic clause of the is numeric suppose date is 09032010 ==> need to print in 20100309 (pic clause is numeric)

6 Answers  


if a pic 9(3) value 354,b pic x(2) value '46' then a)a>b 2)a<b 3)error

8 Answers   Cap Gemini,


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

0 Answers   Infosys,


Can the OCCURS clause be at the 01 level?

8 Answers   Oracle,


Extract only those records from a PS file which are having word 'TEXT' in the records using COBOL? The word TEXT is not present in a particular position in all the records.

2 Answers   RBS,






What is amode(24)?

0 Answers  


What is the maximum size of a 01 level item in COBOL I? in COBOL II?

2 Answers   IBM, RBS,


what if any ,is the syntex error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.

5 Answers   TCS,


I want to declare a field with data type Double in my COBOL program. how shall i do that ?

5 Answers  


Explain about level numbers?

3 Answers  


What is an explicit scope terminator?

3 Answers  


what is the difference between start and startbr?

2 Answers  


Categories