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
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.
What type of SDLC u followed? Why?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What is rmode(24)
Write a cobol program making use of the redefine clause.
What are the different rules to perform a Search?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
How do you define a variable of comp-1 and comp-2?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
) how do u code after getting data?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is the compute verb? How is it used?
For rewrite, why is it mandatory that file needs to be opened?
In COBOL, what is the different between index and subscript?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?