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


Please Help Members By Posting Answers For Below Questions

In COBOL programming, what is PERFORM? What is VARYING?

668


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

639


Why occurs cannot be used in 01 level in COBOL?

711


What are various search techniques in cobol? Explain.

641


) what is the difference between AID and HANDLE AID?

1630






) how do u code after getting data?

1578


How do you reference the fixed block file formats from cobol programs

701


What is static and dynamic call in cobol?

590


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1840


State the various causes of s0c1, s0c5 and s0c7.

658


HOw can I get the negative sign while deduct high value from low value

1784


What is the difference between Global and External Variables?

660


Can we redefine the field of x(200) to less than 200?

814


How to print 10 to 1 if the input have only 10 digit number?

808


Differentiate between structured cobol programming and object-oriented cobol programming.

663