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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain referential integrity?

686


How to find all duplicate records?

653


What do you mean by monitor block?

1508


Can you define spufi?

647


What are the error (ONCODES) codes did you encounter in PL/1 programme?

2599






Express the distinction between jes2 and jes3?

698


Explain path?

671


what are the common errors that occured while programming in AS/400?

1233


Define where and its usage?

679


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

767


in options (main) , what is meaning of main . if u not used main what will happen? After compiling, os will not understand where to load and execute from

1820


What is the difference between general testing and mainframe testing?

680


What are the mainframe computing pros and cons?

759


If JOBA is in MSGW due to data decimal error and DUMP is generated and I found that Decimal field formatted with some special char which is coming from Input file amd file has millions of records. How I can find out on which record the error is occur. Please share your experience.....

1872


How can a like table be created?

669