Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Dyanamic table in ezytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Dyanamic table in ezytrieve
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

Site Director


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

PostPosted: Wed Oct 31, 2007 7:48 pm    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Wed Oct 31, 2007 8:29 pm    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Wed Oct 31, 2007 9:10 pm    Post subject:
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    Post subject: Reply to: Dyanamic table in ezytrieve
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

Site Director


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

PostPosted: Thu Nov 01, 2007 8:25 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Command UNIQUE CONSTRAINT on any tabl... rohanthengal DB2 2 Thu Aug 18, 2016 3:48 pm
No new posts Updating online Db2 table kishpra DB2 3 Fri Aug 12, 2016 2:44 pm
No new posts Getting soc4 on internal table in cobol abdulrafi COBOL Programming 13 Fri May 06, 2016 3:39 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us