Exforsys

Free Training

cobol

This is a discussion on cobol within the COBOL forums, part of the Programming Talk category; what is the difference b/w index and subscript?...

Go Back   Exforsys > Programming Talk > COBOL

Exforsys.com

  #1 (permalink)  
Old 09-02-2007, 11:11 PM
Junior Member
 
Join Date: Sep 2007
Posts: 9
deepika258 is on a distinguished road
cobol

what is the difference b/w index and subscript?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-03-2007, 10:16 AM
Senior Member
 
Join Date: Apr 2006
Posts: 122
rachelle is on a distinguished road
Here is the basic difference ....

Subscript represents occurrence # of the Table Entry. Subscript can be represented explicitly and implicitly. Explicitly means thru occurrence # of the table entry; implicitly means thru a data name. That data name should be defined as an independent item in the W-S Section. The most efficient definition of Subscript is Full-Word binary.

A Index is assigned to specific table thru INDEXED BY clause. Internally is represented by Index Register which is Full-Word binary. Specific index name can be used to reference a field from the table to which that index is assigned to index represents displacement value of the table entry from the beginning of the table.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Cobol and Tandem Cobol. Raman COBOL 1 04-19-2007 03:45 PM
Present the knowledge where COBOL programs take its presence Allan COBOL 0 06-17-2006 06:38 PM
Cobol Versions encoder COBOL 0 05-07-2006 09:55 PM
Catalog of Compiler Construction Products - Eighteenth Issue cccp@transformal.com Tech FAQ 0 05-01-2004 07:00 AM
COBOL FAQ William M. Klein Tech FAQ 0 04-17-2004 07:28 AM


All times are GMT -4. The time now is 01:32 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.