Write the syntax of a two dimensional array?

Answers were Sorted based on User's Feedback



Write the syntax of a two dimensional array?..

Answer / praveen

WORKING-STORAGE SECTION.
01 MATA.
05 ROWA OCCURS 2 TIMES.
10 COLA OCCURS 2 TIMES PIC 9.

Is This Answer Correct ?    44 Yes 11 No

Write the syntax of a two dimensional array?..

Answer / s

01 grparray.
02 month occurs 12 times index by a1.
03 week pic x(4)occurs 7 times.

Is This Answer Correct ?    46 Yes 19 No

Write the syntax of a two dimensional array?..

Answer / varun v

Agree with Ans #1 and #2,

Ans #3 -- Occurs class cannot be at 01 level

Is This Answer Correct ?    34 Yes 10 No

Write the syntax of a two dimensional array?..

Answer / bhanu

this is actually a question which i got.

How to initialize a two dimensional array with indexes?
can any one kindly show me the syntax..?

Is This Answer Correct ?    9 Yes 2 No

Write the syntax of a two dimensional array?..

Answer / jagan

WORKING-STORAGE SECTION.
01 M-GROUP.
02 M OCCURS 6 TIMES.
03 W PIC X(4) OCCURS 4 TIMES.

Is This Answer Correct ?    9 Yes 6 No

Write the syntax of a two dimensional array?..

Answer / mic

To Ans # 5 ..

We can initialize an Index By SET INDEX-NAME TO X

Is This Answer Correct ?    2 Yes 2 No

Write the syntax of a two dimensional array?..

Answer / siri

TWO DIMENTIONAL ARRAY SYNTAX:-

01 WS-ARRAY
05 A OCCURS 30 TIMES
10 B OCCURS 30 TIMES
15 B1 PIC X(10)
15 B2 PIC X(10).

Is This Answer Correct ?    0 Yes 2 No

Write the syntax of a two dimensional array?..

Answer / guest

01 items x(10) occurs 10 times
02 sub items pic x(10) 5 times

Is This Answer Correct ?    9 Yes 68 No

Post New Answer

More COBOL Interview Questions

How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

0 Answers   HeadStrong,


how to code in cobol while using variable block file?

1 Answers  


in cobol i have one file it contains records like 10,4,23,98,7,90..... total records 100. iwant 10 to 20 in reverse order in cobol environ ment any one please give the answer......

2 Answers   IBM,


what happens if we dont close cursor in db2-cobol pgm?

6 Answers  


I HAVE FOLLOWING DECLARATION. 02. A PIC X(10) VALUE 'XXXXXXXXXX'. 02. B REDEFINES A. 05. C PIC X(3). 05. D PIC X(3). 05. E PIC 9(3). IN MY PROG, I HAVE MOVE 1 TO E. DISPLAY A. WHAT WILL BE DISPLAYED AS A RESULT OF THIS? PLEASE EXPLAIN THE ANSWER. THANKS.

7 Answers   Amdocs,






how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas

3 Answers   IBM,


State the various causes of s0c1, s0c5 and s0c7.

0 Answers  


Write the code to count the sum of n natural numbers.

0 Answers  


WT R TECHNICAL MAINFRAME QUESTION ASKED IIN ANJANASOFTEARE??

1 Answers  


hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?

1 Answers  


what is the meaning of pic 9(09)v99-

4 Answers   HSBC,


What is amode(24)?

0 Answers  


Categories