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 are the parameter we cannot use in procedure? How many instream we can write in single jcl? Can we call instream to catalog and catalog to instream?
What is downtime and what might be the reason?
IF a file has 10-members how do you process all of them? using CL& USING RPG?
what is RUNSQLSTM?
List the type of locks?
I want to increse the size of one existing dataset, can anyone tell me the TSO command throgh that I can edit it.
What is mainframe testing?
What is plan and package in mainframe?
GO TO stmt which of the following is not true A) GO TO stmt is not essential in the sense that it is possible to write programs without using GO TO B) The target of the GO TO stmt being a procedure name avoiding GO TO result in a program with no procedure name C) Indiscriminate use of GO TO stmt can make the control structure program substantially complex D) Too many GO TO stmts make a program difficult to understand
Please any one can tell me,What are the tools for pl/1 project in real time scenario?(what are the version control,debugging and files related tools)?
Name all the file-open modes
How to compare two files by using sort?