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 / guest
01 rec1.
02 a pic x(6)
02 b redefines a.
03 c occus 6 times pic 9.----------- 6 bytes
02 d occurs 6 times.
03 e pic x(5)-----------------------30 bytes
03 f pic 999.-----------------------18 bytes
________
54 bytes
scenario 2:If we remove e and f
01 rec1.
02 a pic x(6)-------------------------------6 bytes
02 b redefines a.
03 c occus 6 times pic 9.
02 d occurs 6 times pic 9.-------------------6 bytes
___________
12 bytes
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
How many sections are there in data division in COBOL?
how to move the records from file to array table. give with code example
What is the difference between external and global variables in COBOL?
Why occurs cannot be used in 01 level in COBOL?
What is the Purpose of Pointer in the string?
What is rmode(24)
What is perform what is varying?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
Explain the configuration section of a cobol program with examples of syntax.
Write a program to enter and display the names of students in a class using the occurs clause.
Write a cobol program making use of the redefine clause.
What is amode(24)?
In COBOL, what is the different between index and subscript?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?