Determine the total no of bytes in the following.

01 rec1.
02 a pic x(6)
02 b redefines a.
03 c occus 6 times pic 9.
02 d occurs 6 times pic 9.
03 e pic x(5)
03 f pic 999.

Answers were Sorted based on User's Feedback



Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefi..

Answer / jai

01 rec1.
02 a pic x(6) == 6
02 b redefines a. == 6
03 c occus 6 times pic 9. == 6
02 d occurs 6 times.
03 e pic x(5) ==30
03 f pic 999. ==18
------
66

Is This Answer Correct ?    0 Yes 1 No

Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefi..

Answer / jayaprabhu

01 rec1.

02 a pic x(6)-------------------- 6 bytes
02 b redefines a.
03 c occurs 6 times pic 9.------ 6*1(pic 9 ie why we
have mul with 1 )------------------- 6 bytes
02 d occurs 6 times pic 9.------- (6*1) 6 bytes
03 e pic x(05)------------------- 5*6 =30 bytes
03 f pic 999. --------------------- 3*6=18

6
6
6
30
18

66

if you remove e f

18

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

What is redefines clause in COBOL?

0 Answers   B-Ways TecnoSoft,


Can 88 level variable be declared in FD section..?

1 Answers   Infosys,


How many maximum number of procedures can we write in one COBOL program?

6 Answers  


Define static linking and dynamic linking.

0 Answers  


Why IBM?

1 Answers   IBM,






What is the difference between PIC 9.99 and 9v99 in COBOL?

0 Answers   SwanSoft Technologies,


should I use Go back in the main program ? Yes we can use Go back in main program as well.

2 Answers   Xansa,


What is the difference between a binary search and a sequential search?

10 Answers  


what is level 66 means??

7 Answers  


How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.

1 Answers   Syntel,


What is cobol?

0 Answers  


which of the following can be used as a check protection symbol a.Z b.S c.* d.+

2 Answers   TCS,


Categories