Whats the difference between search & search ALL?

Answers were Sorted based on User's Feedback



Whats the difference between search & search ALL?..

Answer / sushant kumar mohanty

Search : Sequential Search.
Table should have INDEX.
Table need not be in SORTED order.
Search ALL : Binary Search.
Table should have INDEX.
Table should be in sorted order of the searching
argument. There should be ASCENDING/DESENDING
Clause.

Is This Answer Correct ?    3 Yes 0 No

Whats the difference between search & search ALL?..

Answer / rajvee

search needs the index to be set before use..search all
doesnt need it.

Is This Answer Correct ?    0 Yes 0 No

Whats the difference between search & search ALL?..

Answer / rajvee

Search is Sequential Serach whereas Search All is Binary
Search.
Search needs the index key for the array whereas Search All
doesnt need it.
Search All is ideal for searching huge volume of data else
Search is easier.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

1) can we display the index?

3 Answers   ADP, IBM,


01 ws-p pic 9(2). 01 ws-q pic 9(2) value 01. 01 ws-r pic 9(2) value 99. p.d. compute p = q + r what will be result of p ans(00) but my question is that how i got 10 on the place of 00. (truncation will ocuure on right side not left). please tell me ?

6 Answers   L&T,


How many types of sorts are there in cobol?

5 Answers   Cap Gemini,


Difference between ps, esds

3 Answers  


What is the different between index and subscript?

3 Answers  






What is the difference between copy and include in cobol?

1 Answers  


how to code in cobol while using variable block file?

1 Answers  


What is file status 92?

3 Answers  


I have a sequential file. How do I access a record in this sequential file randomly in my program ?

8 Answers   CGI, Xansa,


how to convert the recors form vsam file to db2 table tru file aid

0 Answers   TCS,


how you read control card into array?

3 Answers   HCL,


consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayedafter the PERFORM is over?assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above since there is a syntex error

4 Answers   TCS,


Categories