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 |
WHAT IS SOC3?HOW IT CAN BE RESOLVED?
How can you add a particular field/coloumn in copybook?
How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?
what is scope terminator
How do you compile cobol program..?
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $
how many divisions are there in cobol
How do we get current date from system with century in COBOL?
I have a table with 3 dimensions like this : 01 ws-table 04 ws-page occurs 3 08 ws-column occurs 2. 12 ws-record occurs 20 pic x(40). How to code with PERFORM varying with 3 dimension...I forgot..
i need a small 3d program using inline and outline.
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length