what is the size of W-REC in the following
01 W-REC
05 A PIC 9(4)V99
05 B READLINES A
10 C PIC XX
10 D PIC S9(4)
05 E OCCURS 7 PIC ZZ.ZZ
05 F OCCURS 5
10 G PIC ZZ.ZZZ99
10 H OCCURS 3
15 J PIC 9(3)
15 K PIC V99

Answers were Sorted based on User's Feedback



what is the size of W-REC in the following 01 W-REC 05 A PIC 9(4)V99 05 B READLINES ..

Answer / vel

Let us come from bottom

K=2
J=3

so H = 3 * 5 =15
G = 8
SO F = 5 * ( 8 + 15) =115
E = 7 * 5 = 35
A=B= 6
SO TOTAL SIZE =156

Is This Answer Correct ?    17 Yes 1 No

what is the size of W-REC in the following 01 W-REC 05 A PIC 9(4)V99 05 B READLINES ..

Answer / rahul

Here B is redefining A so 6 will be added only once

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PARA-X MOVE 5 TO N how many times PARA-X willbe exicuted? a.10 b.5 c.infinate d.execution error

6 Answers   ABCL, TCS,


What is level 66 used for ?

3 Answers   TCS,


How to read records which is in sequential file in reverse order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my doubt any one

10 Answers   IBM,


What is 88 level used for ?

2 Answers  


1.Can we define condition-name conditions in FD entry.

11 Answers  






Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

0 Answers  


I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?

5 Answers  


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

0 Answers   Valtech,


What is the difference between performing a SECTION and a PARAGRAPH?

5 Answers   Accenture, Patni,


How do you compile cobol program..?

1 Answers  


What is COMP-1? COMP-2?

4 Answers   CitiGroup,


In COBOL, what is the different between index and subscript?

0 Answers   TryTechnicals Pvt Ltd,


Categories