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 is the difference beetween Arrays and Tables in Cobol? please dont give the answer that arrays in cobol terminology is called tables......

3 Answers   BirlaSoft,


which is better comp or comp-3 in terms of memory utilization?

6 Answers  


What care has to be taken to force program to execute above 16 Meg line?

1 Answers  


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

0 Answers  


hai friends ,i have HSBc exam on this sunday,my platform is Mainframe,i have 1 year exp,pls any one send me placement papers of Hsbc and technical questions on mainframe

6 Answers   Citi Bank, CitiGroup, HSBC, iNautix, Wipro,






What are the different ways to run a COBOL DB2 program using JCL?

2 Answers  


WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH & WHAT IT CONTAIN IN THAT LENGTH

2 Answers   Cap Gemini,


what is qualification on occurs clause?

2 Answers  


I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.

3 Answers   IBM,


How to retain the Duplicates in the one records?

3 Answers   CS,


Write a program to concert an Indexed file into Sequential file?

1 Answers   Covansys,


What is the difference between perform … with test after and perform … with test before?

0 Answers  


Categories