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
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 |
What is the function of the verb initialize?
How do you find whether any generations exist under a gdg base?
Explain Introduction abt Ibm framework
File1 has 100 records and file2 has 200 records I want to copy 50 records which are in both file into file3?
How do you pass pointer PL/1 main procedure to sub procedure?
Is it possible to move the alphanumeric variables to a numeric variable?
how do u create gdgs n vsam by using file-aid ?
What is the need of running runstats in the test environment?
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.
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
How is next sentence and continue different?
how to display the negative numbers?