What is the difference between SEARCH and SEARCH ALL?

cobol interview questions

Moderator: Moderator Group

Post Reply
User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

What is the difference between SEARCH and SEARCH ALL?

Post by Krishna » Sun Jul 19, 2009 7:59 pm

What is the difference between SEARCH and SEARCH ALL?

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Sun Jul 19, 2009 8:00 pm

SEARCH - is a serial search.

SEARCH ALL - is a binary search & the table must be sorted ( ASCENDING/DESCENDING KEY clause to be used & data loaded in this order) before using SEARCH ALL.

ramana murthy
Member
Posts: 10
Joined: Thu Jul 21, 2011 1:34 pm

Post by ramana murthy » Mon Jul 25, 2011 3:13 pm

SEARCH- MULTIPLE WHEN STATEMENTS CAN BE USED.
SEARCH ALL- ONE WHEN STATEMENTS SHOULD BE USED.
SEARCH- ANY ARITHMETIC OPERATORS CAN BE USED.
SEARCH ALL- EQUAL TO (=) SHOULD BE USED.
SEARCH- IT CAN BE USED WITH MULTI DIMENSIONAL ARRAY.
SEARCH ALL- IT SHOULD BE USED WITH ONE DIMENSIONAL ARRAY. :D

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others