View previous topic :: View next topic |
Author |
Message |
nbdtrjk1 Beginner
Joined: 12 Apr 2007 Posts: 76 Topics: 41
|
Posted: Thu Dec 22, 2011 12:46 am Post subject: Two dimensional array in easytrieve |
|
|
All,
Some one help me how to define Two dimensional array in easytrieve.
Thanks |
|
Back to top |
|
|
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Thu Dec 22, 2011 1:05 am Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
nbdtrjk1 Beginner
Joined: 12 Apr 2007 Posts: 76 Topics: 41
|
Posted: Thu Dec 22, 2011 4:00 am Post subject: |
|
|
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 |
|
|
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Thu Dec 22, 2011 5:04 pm Post subject: |
|
|
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 |
|
|
|
|