hw to create 3 dimensional array & hw to access it?



hw to create 3 dimensional array & hw to access it?..

Answer / suneel

creating 3d array is same as creating 2d array....and
fetching is also same.
for example ......
in a country 5 states, in each state 5 politicians,each
politician has 4 accounts.........for that accessing as
follows...
declare i,j,k variables and
perform varying i from 1 by 1 until i>5
" " j " " j>5
" " K " " k>4
display accinfo(i,j,k)
end-perform
end-perform
end-perform.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More COBOL Interview Questions

how would you resolve sb37 and SE37?

2 Answers   Hewitt,


Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc.

3 Answers  


i have variable record in the 5th, i want to sort from 5th filed ? how ?

2 Answers   TCS,


Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?

3 Answers   Microsoft,


can u plz expain me how to declare dynamic array? what is the meaning of depending on clause in dynamic array?

3 Answers   IBM, Satyam,


which one is better among static call and dynamic call?

3 Answers  


Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ? Thanks krishna chaitanya

2 Answers   CSC,


How can we pass data from cobol to JCl?

7 Answers   ADP, Amdocs, IBM,


i have two file, each file having : file1 is having 2 fields field1 field2 file2 is having 3 fields field1 field2 field3 my req is to make it one file like: field1 field2 field1 field2 field3 if anyone know please send me syntax, i tried this with DFSORT but could not succeed.

9 Answers   Syntel,


what happens if we dont close cursor in db2-cobol pgm?

6 Answers  


can we use go to statement inline-perform?

7 Answers   IBM,


What rules are to be followed while using the corresponding options?

0 Answers  


Categories