What is the difference between SEARCH and SEARCH ALL?

Answers were Sorted based on User's Feedback



What is the difference between SEARCH and SEARCH ALL?..

Answer / sharath

SEARCH
1)Linear/sequential search
2)No sorting order because its seq. order
3)access is slow
4)Any relational operator is used
SEARCH ALL
1)Binary search
2)Sorting either asc/dsc order
3)Access is faster
4)Only equal operator can be used.

Is This Answer Correct ?    17 Yes 0 No

What is the difference between SEARCH and SEARCH ALL?..

Answer / anil prajapati

search is a sequential/linear search and search all is
binary search

Is This Answer Correct ?    10 Yes 1 No

What is the difference between SEARCH and SEARCH ALL?..

Answer / karan

search is linear search. search the data based on condition.
search can work with multiple when conditions.
data is no need sorted order.
when ever we searching the data index clause must be used.
this will take more time compare with search all.

Search all:Binary search.
data must be a sequence either ascending or descending order .
only one when condition can be used.
this will take less time

Is This Answer Correct ?    8 Yes 0 No

What is the difference between SEARCH and SEARCH ALL?..

Answer / dev

in addition to the above answer the data to be searched
should be sorted in case of binary search

Is This Answer Correct ?    8 Yes 1 No

What is the difference between SEARCH and SEARCH ALL?..

Answer / debby

Search starts at the beginning of the table and searches
each element until the argument is found.

Search All starts mid-point and selects the table partition
to search based on the argument (high or low).

Is This Answer Correct ?    2 Yes 0 No

What is the difference between SEARCH and SEARCH ALL?..

Answer / pradeep

search:
n search only index can be used
and also multiple when conditions can be used
but coming to binary search
index cannot be used
it searches according to ascending order or des order
here only when codition is possilble

if at all any mistakes can u correct me plssssssss
urs pradeep

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

88 class is used for

5 Answers   CTS, EDS,


what is s000 u4087 error? please give the all error codes in cobol,jcl.

0 Answers  


What is the difference between SEARCH and SEARCH ALL?

6 Answers   Cognizant,


What is diff betn PS and ESDS file? What is the diffrent compiler options in cobol and there discription? What is retrive nth maximum salary from salary DB2 table. Can we redefine COM-3 variable with varchar variable?

4 Answers  


How to replace the GOTO statement in COBOL without changing the structure of program. e.g. consider following code... I.D. E.D. D.D. P.D. compute C = A + B. GOTO para 100-display. compute D = C - D. GOTO 200-display. some other logic...... ........ GOTO 300-para. ...... ...... GOTO 400-para. Now I want to replacce all GOTO statements without changing the structure and otput of program.

6 Answers   Accenture,






how do you reference the fixed unblock file formats from cobol programs

0 Answers  


How to delete a front spaces in a data-name/variable in cobol Example:- 01 data-name-1 PIC x(20) value " cobol language". 01 data-name-2 PIC x(20). MOVE data-name-1 to data-name-2. would like the value of data-name-2 is "cobol language".

3 Answers  


What is the difference between binary search and sequential search?

0 Answers  


waht is inspect verb? where it can be in real time?

1 Answers   Patni,


What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES

7 Answers   TCS,


In an EVALUATE statement, can I give a complex condition on a when clause?

2 Answers  


What is JOBLIB and STEPLIB in JCL? what is the purpose of using it?

1 Answers  


Categories