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
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
How do define dynamic array in cobol.
How do get the result of your program directly on your pc?
What are the rules of the move verb?
For rewrite, why is it mandatory that file needs to be opened?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
How you can read the file from bottom?
What are different data types in cobol?
Name the divisions, which are available in a cobol program?
how to move the records from file to array table. give with code example
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What is length is cobol?
Can we change the password using ALTER? anyone tried and changed?
What rules are to be followed while using the corresponding options?
what is s000 u4087 error? please give the all error codes in cobol,jcl.