Determine the total no of bytes in the following
01 rec1 .
02 a pic x(6).
02 b redefines a.
03 c occurs 6 times pic 9.
02 d occurs 4 times.
03 e pic x(5).
03 f pic 999.
a)38.
b)44
c)14
d)32

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 redefines..

Answer / hemanth

Ans: 6 + 4(5+3) = 38
option a.

Is This Answer Correct ?    7 Yes 1 No

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

Answer / shinoy sansilavose

38 is the correct answer.

whenever you doing total byte calculation do it from bottom.

Here 3+5 =8 and it occurs 4 times ... 8*4 = 32

the var b redifines a therefore no need to consider the
bytes of b and its sub level variables.

add 32 with the byte of var a you will get 32+6=38.........
confirmed.

Is This Answer Correct ?    5 Yes 0 No

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

Answer / santu

Ans = b

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More IBM MainFrame AllOther Interview Questions

What is the function of the verb initialize?

0 Answers  


How do you find whether any generations exist under a gdg base?

0 Answers  


Explain Introduction abt Ibm framework

0 Answers   IBM,


File1 has 100 records and file2 has 200 records I want to copy 50 records which are in both file into file3?

0 Answers  


How do you pass pointer PL/1 main procedure to sub procedure?

1 Answers   IBM,






Is it possible to move the alphanumeric variables to a numeric variable?

0 Answers  


how do u create gdgs n vsam by using file-aid ?

2 Answers  


What is the need of running runstats in the test environment?

0 Answers  


Can any one tell me that how we go for the compare,unit testing after changing requirement as per client request. this is very helpful for me when u give suitable (coading) exmple.

0 Answers   TCS,


Please send me the real time scenarios in Mainframe Project... i.e., it may be in banking or insurance sector or any other no problem..... please send your mails to krishnaprasadbvs@gmail.com

0 Answers   CSC,


How is next sentence and continue different?

0 Answers  


how to display the negative numbers?

0 Answers  


Categories