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

How do you create a like table?

0 Answers  


What do you mean by an alias?

0 Answers  


How can we extract data from IMS DB and load it onto oracle database by converting it.Pls someone help me

2 Answers   TCS,


suppose oza017.myorg.emp has 100 records ,oza018.myorg.staff has 200 records but 50 are the common records in both files copy all the common records into oza017.myorg.xyz dataset?

0 Answers   IBM,


What is mainframe database?

0 Answers  






which of the following is not true about search verb A) every search stmt must contain the AT END clause B) any no of WHEN clause can be used with this verb C) this verb can only applied to a table which is defined with the OCCURS clause and INDEXED phases. D) WHEN condition is satisfied

2 Answers   Accenture,


Why banking use IBM framework?

1 Answers   IBM,


What do you mean by linkage section?

0 Answers  


what is the meaning of a (new, catlg, keep) disposition mean?

0 Answers   IBM,


pic S9(4) results 3 bytes1 A) comp B) comp1 C) display D) comp3

2 Answers   Accenture,


What is linkage section?

0 Answers  


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

0 Answers  


Categories