MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Two dimensional array in easytrieve

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
nbdtrjk1
Beginner


Joined: 12 Apr 2007
Posts: 76
Topics: 41

PostPosted: Thu Dec 22, 2011 12:46 am    Post subject: Two dimensional array in easytrieve Reply with quote

All,

Some one help me how to define Two dimensional array in easytrieve.


Thanks
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Thu Dec 22, 2011 1:05 am    Post subject: Reply with quote

There are very usable examples in the documentation.

If your organization is licensed to use the product, all of the material is free from CA Support.

A 2-dimensional array definition in Easytrieve is rather similar to COBOL.
_________________
All the best,

di
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Thu Dec 22, 2011 3:28 am    Post subject: Reply with quote

nbdtrjk1,

Multiple Dimension Arrays in CA-Easytrieve Reference Guide
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nbdtrjk1
Beginner


Joined: 12 Apr 2007
Posts: 76
Topics: 41

PostPosted: Thu Dec 22, 2011 4:00 am    Post subject: Reply with quote

yes. I refered the same documents, But i could not get the desired result.
code
Code:
define ws-a        w 100 a
define ws-b  ws-a    2   a occurs 10 index wsa
define ws-c  ws-b    3   a occurs 10 index wsb

ws-b(1) = "Test1"
ws-c(1,1) = "Test2"


when i print the value I getting value of Test2 not test2.

I am trying to stroe the information like this into Two-Dimensional Array
Code:
WS-B - ws-c
A1   - AA1 
A1   - AA2
A1   - AA6
B1   - BB1
B2   - BB2
B2   - BB4
B5   - AA1
B5   - BB1


Please advice

Thanks
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Thu Dec 22, 2011 5:04 pm    Post subject: Reply with quote

Quote:

yes. I refered the same documents, But i could not get the desired result.
Have you used the supported documentation downloaded from CA Support yet?

I just looked at recent (maybe the most current - r11.1) documentation and it does not look quite like what you have posted. . . Also what you have posted appears incomplete/incorrect (as in would not compile), so advice is difficult (at least for me).
_________________
All the best,

di
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group