IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

where to use index and where to use subscript?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nagireddynarva

New User


Joined: 30 Apr 2005
Posts: 5
Location: hyderabad

PostPosted: Sat Apr 30, 2005 4:52 pm
Reply with quote

hi,
iam an entry level cobol professional.i want to know the at what instance should we use index and what instance should we use subscript? when index is more efficient than subscript what for subscript?

cheers..
icon_lol.gif
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Apr 30, 2005 9:58 pm
Reply with quote

Hi,

The conventional wisdom states that tables w/more than 70 entries should be referenced thru an index. That's the supposed "break even point" where the better speed of indexing exceeds the the additional overhead of its use.
Back to top
View user's profile Send private message
brain_s390

New User


Joined: 06 May 2005
Posts: 58
Location: Mumbai

PostPosted: Sun May 15, 2005 12:27 am
Reply with quote

Yes thats true !..Normally if the entries are large then its better if we use index.Let me know if you need more info on this.
Back to top
View user's profile Send private message
dbelton

New User


Joined: 10 Jun 2005
Posts: 15

PostPosted: Tue Jun 14, 2005 4:36 pm
Reply with quote

brain_s390 wrote:
Yes thats true !..Normally if the entries are large then its better if we use index.Let me know if you need more info on this.


Also, if your table is loaded in sequence, and you need to do searches on it, then indexing it is faster since it can then do a binary search instead of scanning through the entire table until if finds the item you are looking for.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Cobol file using index COBOL Programming 2
No new posts Finding faulty logic Subscript out of... COBOL Programming 5
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
No new posts Add column to existing records using ... JCL & VSAM 2
No new posts choice of clustering index DB2 3
Search our Forums:

Back to Top