what is search and searchall?what is the diffrence between
them?give an best example?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is the file organization clause ?
in cobol perform stmt whether it first checks the condition or not
What is the problem of ordered sequential files access?
Why we need to use redefine clause when we can define the variable seperately... what is actual need....
how we rectify soc7 and soc4 errors in project?
Can we put move statement in COBOL copybook
wht is structured cobol pgm and non structred cobol pgm ?
what is lrec=f,what is difference between f,fb,v,vb?what is default value?how do we came to know that records are in f,fb,v,vb?
I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.
I have a table with 3 dimensions like this : 01 ws-table 04 ws-page occurs 3 08 ws-column occurs 2. 12 ws-record occurs 20 pic x(40). How to code with PERFORM varying with 3 dimension...I forgot..
How do we get current date from system with century in COBOL?
if we have a 10 steps how to override the 4th step in jcl?