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

where do u use low-value and high value in cobol

3 Answers   CGI,


How can you add a particular field/coloumn in copybook?

3 Answers   ADP, DELL, L&T,


In COBOL CALL-CALLING,if a program A is calling 3 sub- programs, dynamically, then it is said sub-programs will always will always in Initial Mode. My question is : Do we need to code CANCEL or (IS INITIAL) for dynamically called sub-programs or it is the property of Dynamically called pgms so every time sub-pgms are called they will be in initial mode. ***This question is only Dynamic call****, Please reply. Thank you in advance.

4 Answers   Wipro,


HOW TO MOVE REDEFINES CLAUSE FROM INPUT TO OUTPUT ?

1 Answers  


What are various search techniques in cobol? Explain.

0 Answers  






What is the problem of ordered sequential files access?

0 Answers  


What is the Linkage section? What is the Use and Why the parm length use alway "PARM-LENGTH PIC S9(4) or PIC S9 (4) COMP." any reason?.Please let me know any one... Cheers,Prasad

8 Answers   Syntel,


if someone is using my file,how can i find which user id is using?

4 Answers  


What is report-item in COBOL?

0 Answers   Arigo Infotech,


If i got a job on mainframe technology, will i have a bright future?. Some people are discouraging me. Let me know, is it true? Please bring back me from the confusion.

2 Answers  


What is the difference between CONTINUE & NEXT SENTENCE ?

2 Answers  


What is sqlca and why is it needed in any cobol-db2 program?

1 Answers  


Categories