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

There is a variable with value 19446. Requirement is to convert it to 194.46. I tried it by doing divide by 100 and my receiving field data type is 9(03)v99. But the output is 194. I am not getting the decimal value. Could anyone pls let me know how to get this done?

2 Answers  


State the various causes of s0c1, s0c5 and s0c7.

0 Answers  


what happens when a copybook variables are declared using include statement ?

3 Answers   IBM,


How you can characterize tables in cobol?

0 Answers  


how to know that the file has 300 records how to acess it?

0 Answers   Hewitt, TCS,






How to open and see copy book ?

3 Answers  


How many sections are there in data division?.

10 Answers   Amdocs, TCS,


what are the error codes in cobol, db2, cics, vsam , and jcl

2 Answers   TetraSoft,


What is IMPACT analysis?

2 Answers   IBM,


How To move a value to an array using move verb?

3 Answers   IBM,


What is a SSRANGE and NOSSRANGE?

0 Answers  


i want a program using by if, evaluate , string, unstring, perform, occurs?

1 Answers  


Categories