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 unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am


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