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

What are the divisions in a cobol program? Which one is the mandatory division among them?

1 Answers  


Name the divisions, which are available in a cobol program?

0 Answers  


How to resolve the soc4 & soc7 other than following answers. Soc4 can resolved using mispleed dd name and dd name is not matching with file and soc7 check the sysdump and copy the offest address then correct it in the program.

10 Answers   ADP, Amdocs, Cap Gemini, Keane India Ltd, Super Value, TCS,


How you can read the file from bottom?

0 Answers  


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

0 Answers  






how many maximum no of variables can be declared in linkage section ?

2 Answers   HCL,


i have a sequencial file contains multiple records, i want to extract one row which contains various fields like order number,date,warehouse,.ect.. in to the another file by accepting the order number from jcl. how can i do it. pls help me..

4 Answers   CGI,


what r the types of perform statement

4 Answers  


what is the difference between Normal vaiable and comp variable.

5 Answers   DELL,


What is the reference modification.

2 Answers  


suppose a cobol programme A calling programme B,C and D. If C undergoes some change what if A,B,C,D need to be recompiled or only C nee to be recompliled.

2 Answers   IBM,


i have the following varibles in the working storage 05 ws-A PIC X(30) VALUE 'ABCDEFGHIJKLMNOPQRESTUVWXYZ ' 05 WS-B REDEFINES WS-A 10 WS-B1 PIC X(10). 10 WS-B2 PIC 9(10). 10 WS-B3 PIC X(10). If I Display B1, B2 and B3 respectively, what is the value displayed in B2

9 Answers  


Categories