Skip to main content

Syntax to acces 2 dimensional arrays

  • March 16, 2011
  • 2 replies
  • 0 views

[Migrated content. Thread originally posted on 16 March 2011]

Hi there,

I am a bit rusty I think and have forgotten the syntax to access the second dimension of a two dimensional array e.g using the example in the extend help
01 TABLE-2.
03 BAKER OCCURS 20 TIMES.
05 CHARLIE ...
05 DOG OCCURS 5 TIMES ...

What is the syntax to access the 4th element of DOG in the 12 element of BAKER ?

Thanks in advance.

2 replies

[Migrated content. Thread originally posted on 16 March 2011]

Hi there,

I am a bit rusty I think and have forgotten the syntax to access the second dimension of a two dimensional array e.g using the example in the extend help
01 TABLE-2.
03 BAKER OCCURS 20 TIMES.
05 CHARLIE ...
05 DOG OCCURS 5 TIMES ...

What is the syntax to access the 4th element of DOG in the 12 element of BAKER ?

Thanks in advance.

Sorry.. had a light bulb moment - the syntax is (12,4)


[Migrated content. Thread originally posted on 16 March 2011]

Hi there,

I am a bit rusty I think and have forgotten the syntax to access the second dimension of a two dimensional array e.g using the example in the extend help
01 TABLE-2.
03 BAKER OCCURS 20 TIMES.
05 CHARLIE ...
05 DOG OCCURS 5 TIMES ...

What is the syntax to access the 4th element of DOG in the 12 element of BAKER ?

Thanks in advance.

Sorry.. had a light bulb moment - the syntax is (12,4)