Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between SEARCH and SEARCH ALL? What
is more efficient?

Answer Posted / kumar raja.

SEARCH ALL is an efficient one then why we need SEARCH ?

ONE EXAMPLE.

In VSAM files by passing the partial key we can search the
record using SEARCH or AEARCH ALL
But if you would like to point out 1st record with this
partial key, SEARCH will find the 1st record with that
partial key.
And SEARCH ALL will not. (95%)

Example. (Here my target to get 1st record with the
partial key. i.e (200 300 XXXXXXA)

VSAM File. (assume KEY as : ORG LOGO ACCOUNT) and
partial KEY (ORG = 200 LOGO = 300)
ORG LOGO ACCOUNT

100 222 XXXXXXXXX
100 333 XXXXX
111 333 XXXXXXX
200 300 XXXXXXA
200 300 XXXXXXB
200 300 XXXXC
200 300 XXXXXXD
250 300 XXXXXXX
300 340 XXXXXXX

In the case of search the O/P will be (200 300 XXXXXA)
Correct as per the requirement.
But in case of SEARCH ALL the response will be (200 300
XXXXXB). Wrong as per the requirement.

Regards,
Kumar Raja.

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we redefine the field of x(200) to less than 200?

1307


What are declaratives and what are their uses in cobol?

1130


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

1185


Explain what you understand by passing by value.

1099


What is the difference between binary search and sequential search?

1043


what are decleratives in cobol?

2208


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2324


What rules are to be followed while using the corresponding options?

1016


How do you reference the fixed block file formats from cobol programs

1155


What is static and dynamic call in cobol?

1000


Which Search verb is equivalent to PERFORM…VARYING?

999


What is the Purpose of Pointer in the string?

1025


What is Pic 9v99 Indicates in COBOL?

1178


Write a program that uses move corresponding.

1072


What are the different open modes available in cobol?

1142