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

in cobol main pgm is calling sub pgm but sub pgm does not exists , what abend i get if submit the job?

2 Answers   HSBC,


how can we fetch 3 records in cobol pgm any coding pls ?

3 Answers   CGI,


What is the difference between working storage copybook and linkage section copybook?

5 Answers   TCS,


What is Alternate Index ? How is it different from regular index ?

2 Answers  


What is the difference between structured cobol programming and object alternativelyiented cobol?

0 Answers  






In an EVALUTE statement is the order of the WHEN clauses significant?

4 Answers  


how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?

4 Answers   TCS,


What is Control Break processing ?

1 Answers   iGate,


When and how can we use index & subscript ?

2 Answers  


In INITIALIZE what is Repalcing Word will do

1 Answers   CTS,


How do we get current date from system with century?

2 Answers  


If i initialize the 01 level variable in array, will it initialize all the array elements (occurs)?

8 Answers   CTS,


Categories