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
In COBOL programming, what is PERFORM? What is VARYING?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Why occurs cannot be used in 01 level in COBOL?
What are various search techniques in cobol? Explain.
) what is the difference between AID and HANDLE AID?
) how do u code after getting data?
How do you reference the fixed block file formats from cobol programs
What is static and dynamic call in cobol?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
State the various causes of s0c1, s0c5 and s0c7.
HOw can I get the negative sign while deduct high value from low value
What is the difference between Global and External Variables?
Can we redefine the field of x(200) to less than 200?
How to print 10 to 1 if the input have only 10 digit number?
Differentiate between structured cobol programming and object-oriented cobol programming.