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
Write a program to enter and display the names of students in a class using the occurs clause.
Write down the divisions of cobol program?
When is inspect verb is used in cobol?
Give some examples of command terminators?
what is search and searchall?what is the diffrence between them?give an best example?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
How many sections are there in data division in COBOL?
What is the LINKAGE SECTION used in COBOL?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Which mode is used to operate the sequential file?
Write a program to explain size error.
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
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
What is perform what is varying?