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 to refer the data field?

0 Answers  


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

0 Answers  


in cobol i have one file it contains records like 10,4,23,98,7,90..... total records 100. iwant 10 to 20 in reverse order in cobol environ ment any one please give the answer......

2 Answers   IBM,


What is 88 level used for ?

2 Answers  


What is SQL Code -904 and -903 in DB2 And how to handle it?

1 Answers   IBM,






is it possible to declare index in cobol program? if it is not why its tell me pls

3 Answers  


Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ADD B TO A ON SIZE ERROR DISPLAY "ERROR!!!" What will be the result ? (a) A=88.10, B=32.754 (b) A=87.00 B=32.754 (c) A=87.10 B=32.754 (d) ERROR!!! will be DISPLAYed on the screen.

3 Answers   TCS,


Can we use goto statement in inline_perform ?

5 Answers   IBM,


what are the utilities for load and unload the DB2 tables

1 Answers   L&T,


What is the meaning of 'TALLING' verb in cobol?

5 Answers  


study the data discriptions and answer the questions given below i)01 ORDER RECORD 05 OUT-HEADER PIC X(50) 05 ITEM-COUNT PIC 99 05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING ON ITEM-COUNT ii)01 NAME-AND-ADDRESS 05 N-AND-A-LINE OCCURES 5 05 LINE-LENGTH PIC P9 05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON LINE-LENGTH iii)01 SALES-LIST 05 SALESMAN-COUNT PIC 99 05 SALES PIC 9(6) OCCURS 1 TO 100 DEPENDING ON SALESMAN-COUNT iv)01 ORDER-RECORD 05 NO-OF-BRANDS PIC 99 05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON NO-OF-BRANDS which of the following is true? a.i) and iii) are valid b.i) and iv) are valid c.i) and iii) are not valid d.all are valid

4 Answers   TCS,


DATAONLY, MAPONLY functionality?

1 Answers   IBM,


Categories