Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 962
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: 2502
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 Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
No new posts Wildcard logic in COBOL dudenithy COBOL Programming 13 Thu Sep 01, 2016 7:36 pm
No new posts Unstring list of values into an array. Roshnii COBOL Programming 8 Mon Jun 27, 2016 6:25 pm
No new posts Search a Load Module sreekanth1984 TSO/ISPF 8 Tue Jun 07, 2016 8:45 pm
No new posts Sort Logic to extract data scorp_rahul23 DFSORT/ICETOOL 13 Tue Mar 01, 2016 1:22 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us