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 |
Can we give +2 instead of +1 while creating a new gdg file?
Total no of bytes in the following 01 rec-1 02 first-group 03 a1 pic x(4). 03 a2 pic 99. 02 second-group redefines first-group. 03 A3 pic999. 03 A4 pic 999. 02 third-group. 03 A5 occurs 5 times pic 99. A)22 B)16 C)12 D)10
What are some uses of the evaluate statement? Explore the syntax of the evaluate statement?
This was on MQseries. What does MQ queue Manager do? what are the different types of queues? do you know about remote queues etc. How do you delete records from queues? how do you empty queues?
In a test environment, is there a need to run a runstats?
IF a file has 10-members how do you process all of them? using CL& USING RPG?
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
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
When you are working with the project.. once your coding is over what will u do? where u r maintaining your CR(change request) what is the format what are the documents u need to prepare while testing?
How do you write from PL/1 code to JCL?
What is the binary search?
When the job statement is used?