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

Use of subscripts in Easytrieve tables.


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bijumon

New User


Joined: 14 Aug 2006
Posts: 20
Location: Pune,India

PostPosted: Thu Jul 26, 2007 7:03 pm
Reply with quote

Hi,

I would like to know whether we can use subscripts in easy trieve tables, like:

if "EZT-TABLE" is an easytrieve table and say there are 10 occurences,
can i use
COUNT = 1
DISPLAY 'EZT-TABLE :' EZT-TABLE(COUNT)

Or do we need to use the index, i yes the how to use the index, if possible, please provide a sample code.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


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

PostPosted: Thu Jul 26, 2007 7:17 pm
Reply with quote

Indexing is data reference that results when CA-Easytrieve/Plus derives a displacement value to correspond to a particular occurrence in a field name defined with the OCCURS option.
For example, if an occurring field is defined as:
DEFINE MONTHWORD MONTH-TABLE 9 A +
OCCURS 12 INDEX MONTH-INDEX

Subscripts are an alternate method available where CA-Easytrieve/Plus performs the index computation.
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Need to fetch data from so many DB2 t... DB2 9
No new posts Count the number of characters in a f... CA Products 1
No new posts File matching functionality in Easytr... DFSORT/ICETOOL 14
No new posts How to: PK does not exist in several ... DB2 6
No new posts Discrepancy b/w SYSIBM tables and BMC... DB2 0
Search our Forums:

Back to Top