Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Search/Search All vs array logic

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
nikyojin

New User


Joined: 05 Oct 2005
Posts: 94

PostPosted: Fri Feb 22, 2008 6:48 pm    Post subject: Search/Search All vs array logic
Reply with quote

Hi,

I need to know whether using Search/Search All keyword is in any way inefficient against using array logic linear comparison.
Back to top
View user's profile Send private message

Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 968
Location: Richmond, Virginia

PostPosted: Fri Feb 22, 2008 6:52 pm    Post subject:
Reply with quote

This is such an open-ended question.

Why not set up several good tests that somehow match your processing needs and let us know the results?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Fri Feb 22, 2008 7:21 pm    Post subject: Re: Search/Search All vs array logic
Reply with quote

nikyojin wrote:
I need to know whether using Search/Search All keyword is in any way inefficient against using array logic linear comparison.
I would think that Search is an 'array logic linear comparison'....
Regarding Search All, I recall someone once said that the break even point was at some number of entries in the table. Above that number, All worked best and below that number, a straight search was best....
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Feb 22, 2008 7:48 pm    Post subject:
Reply with quote

Also if you write your own search logic someone has to maintain it. Since you would be writing in COBOL it would be difficult to write code that would be more efficient then the compiler produces.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Fri Feb 22, 2008 8:11 pm    Post subject: Search/Search All vs array logic
Reply with quote

IMHO, greater than 128 sorted table-entries would warrant SEARCH ALL usage, which (under the covers), causes a BALR to the associated COBOL run-time routine.

Otherwise, for a straight/sequential SEARCH, the compiler will usually generate in-line code, without issuing a BALR.

HTH....

Regards,

Bill
Back to top
View user's profile Send private message
nikyojin

New User


Joined: 05 Oct 2005
Posts: 94

PostPosted: Sun Feb 24, 2008 8:51 pm    Post subject: Reply to: Search/Search All vs array logic
Reply with quote

Thanks for all ur replies
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Utility for search operation Gopalakrishna551 TSO/ISPF 11 Wed Jan 03, 2018 11:07 am
No new posts TBSARG - Deleting the search criteria... ISPFHerc TSO/ISPF 6 Thu Dec 14, 2017 8:18 am
No new posts Is CICS BMS logic on z/OS different ... Andi1982 CICS 2 Fri Dec 01, 2017 1:56 pm
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us