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

What is diff betn PS and ESDS file? What is the diffrent compiler options in cobol and there discription? What is retrive nth maximum salary from salary DB2 table. Can we redefine COM-3 variable with varchar variable?

4 Answers  


What does the initialize statement do ?

2 Answers  


What is the difference between COMP & COMP-3 ?

2 Answers  


What is level 66 used for ?

3 Answers   TCS,


why occurs clause not mentioned in 01 level

6 Answers   HCL, NIIT, TCS, Tesco,






what are the error codes in cobol, db2, cics, vsam , and jcl

2 Answers   TetraSoft,


ZEROES and SPACES are _______ constants (a) Figurative (b) Numeric (c) Non-numeric (d) Alphabete

4 Answers   TCS,


Can printer files (having 133 characters) be of variable length?

3 Answers  


How we copy a program from production region to development region.What is the process & syntax ?

3 Answers   CTS,


what is linkcard in cobol?

1 Answers   TCS,


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

0 Answers  


What is perform what is varying?

0 Answers  


Categories