Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us