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 |
I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..
How can we know that cobol program is using report file or simple file....?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
what is filler and what is use of filler
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
Wat is the difference between NEXT and CONTINUE statement in cobol,can any one explain with example.
What are the various section in data division and briefly explain them.
what is jcl approach for programming?
How do you come out of an EVALUATE statement?
What are literals?
Extract only those records from a PS file which are having word 'TEXT' in the records using COBOL? The word TEXT is not present in a particular position in all the records.
What is file status 92?