Determine the total no of bytes in the following.
01 rec1.
02 a pic x(6)
02 b redefines a.
03 c occus 6 times pic 9.
02 d occurs 6 times pic 9.
03 e pic x(5)
03 f pic 999.
Answer Posted / jayaprabhu
01 rec1.
02 a pic x(6)-------------------- 6 bytes
02 b redefines a.
03 c occurs 6 times pic 9.------ 6*1(pic 9 ie why we
have mul with 1 )------------------- 6 bytes
02 d occurs 6 times pic 9.------- (6*1) 6 bytes
03 e pic x(05)------------------- 5*6 =30 bytes
03 f pic 999. --------------------- 3*6=18
6
6
6
30
18
66
if you remove e f
18
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
Difference between cobol and cobol-ii?
What are the various section in data division and briefly explain them.
Name the divisions, which are available in a cobol program?
What is static and dynamic call in cobol?
Which is not true about evaluate statement
Have you used comp and comp-3 in your project? And how?
example for sub strings ? and refernce modifications whit output pls
What are the pertinent COBOL commands?
) How do u handle errors in BMS macro
how do you reference the ksds vsam file formats from cobol programs
Write some characteristics of cobol as means of business language.
A table has two indexes defined. Which one will be used by the SEARCH?
What type of SDLC u followed? Why?
How to use the same COBOL program in Batch and CICS on lines? explain with an example