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

Dyanamic table in ezytrieve


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

New User


Joined: 17 Jun 2006
Posts: 27

PostPosted: Wed Oct 31, 2007 8:06 am
Reply with quote

How can we use dynamic table in easytrive...
I want to use a table which could store 100 to 500 data items.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Oct 31, 2007 7:48 pm
Reply with quote

Hello,

Use OCCURS to define your table/array.

If this is not what you are looking for, please post more detail.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Oct 31, 2007 8:29 pm
Reply with quote

Dick,

I believe he is looking for easytreive equivalent of COBOL OCCURS DEPENDING ON statement.

To my knowledge, you can't acheive this in easytreive.
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: Wed Oct 31, 2007 9:10 pm
Reply with quote

Suryyogi wrote:
How can we use dynamic table in easytrive...
I want to use a table which could store 100 to 500 data items.
Even in COBOL, the working storage is reserved for the max size....
Define for max and set a count of how many actual entries there are....
Should be a piece of cake......
Back to top
View user's profile Send private message
Suryyogi

New User


Joined: 17 Jun 2006
Posts: 27

PostPosted: Thu Nov 01, 2007 8:07 am
Reply with quote

Well , I am looking for :
I will count how many data items I have and on that count I want to define table size.

I am looking for easytreive equivalent of COBOL OCCURS DEPENDING ON statement.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Nov 01, 2007 8:25 am
Reply with quote

Hello,

You have to control this in your code.

Define the table the largest it might ever validly be.

Count entries as you move them into the table.

When processing the table, make sure the code does not refer to any entries beyond the last one used.
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 Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top