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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


What are the different rules of SORT operation?

700


Are you comfortable in cobol or jcl?

643


What is the use of intialize verb?

750


how do you reference the ksds vsam file formats from cobol programs

666






What is the difference between goback, stop run and exit program in cobol?

932


Can a Search can be done on a table with or without Index?

804


What is the problem of ordered sequential files access?

703


What rules are followed by the search verb.

638


What is the usage of comp fields in cobol?

660


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1960


What type of SDLC u followed? Why?

1520


Have you used comp and comp-3 in your project? And how?

2009


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1702


Name the divisions, which are available in a cobol program?

685