how will u retreive value from a table.write it with syntex.
01 ws-table
05 ws-table1 occurs 10 times.
05 ws-table2 occurs 10 times.
the above is 2 dimensional array..how will u retrieve 1st
element of an array
Answer Posted / veenaibm
Multidimentional array is as follows:
01 TABLE-REC-1.
05 ROWS OCCURS 1 TO 10 TIMES.
10 COLUMNS OCCURS 1 TO 10 TIMES.
20 CELL PIC X(1).
Now if we want to access the value of the variable CELL,
we can use
Perform x from 1 by 1 until x>10
Perform y from 1 by 1 until y>10
cell(x,y).
In the question, it is not a 2 dimentional array.
It is 2 single dimentional array which can be accessed
independently.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Explain how you can characterize tables in cobol?
What are the different data types in cobol?
How can you get the ksds file records into your cobol program?
How many bytes S(8) comp field occupy and its maximum value?
Are you comfortable in cobol or jcl?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What are the pertinent COBOL
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
In which area will you utilize 88 level items in cobol?
What are the rules of the move verb?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
Name the divisions, which are available in a cobol program?
In COBOL programming, what is PERFORM? What is VARYING?
What rules are to be followed while using the corresponding options?