Write the syntax of a two dimensional array?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
Answer / mic
To Ans # 5 ..
We can initialize an Index By SET INDEX-NAME TO X
| Is This Answer Correct ? | 2 Yes | 2 No |
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 |
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 |
What is the utilization of copybook in cobol?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
Which is the best IBM mainframe Training Institute in Ameerpet, Hyderabad
What are literals?
s9(18) comp-3:: What is the size of memory it takes internally?
Can JUSTIFIED be used for all the data types?
) how do u code after getting data?
How to Write the RESTART Logic Using COBOL?
4 Answers GalaxE, L&T, Syntel, TCS,
The hierarchy of the execution of logical operators is (a) NOT AND OR (b) AND OR NOT (c) OR AND NOT (d) OR NOT AND
10 Answers Huawei, IBM, TCS,
Hi Guys, I have faced one interview question if I have requirement to add 5 new columns to existing table what are prerequisite do i need to take.
What rules are to be followed while using the corresponding options?
if a pic 9(3) value 354,b pic x(2) value '46' then a)a>b 2)a<b 3)error