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 All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
No new posts Question regarding ISPF tables with T... TSO/ISPF 11
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Overwriting SSN Digits in Easytrieve ... CA Products 0
No new posts Need to fetch data from so many DB2 t... DB2 9
Search our Forums:


Back to Top