How many bytes will be allocated for the following record
description
entries?
01 REC-A.
05 A PIC S9(4).
05 B PIC XXXBXXX.
05 C PIC ____9.99.
05 D PIC S9(5) COMP-3.
05 E PIC 9(3) COMP.

Answer Posted / raj

05 A PIC S9(4) -> 4
05 B PIC XXXBXXX -> 7
05 C PIC ____9.99 -> 4
05 D PIC S9(5) COMP-3 -> 3
05 E PIC 9(3) COMP -> 2

SO TOTAL OF 20 BYTES

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are all the divisions of a COBOL program?

665


How do we get current date from system with century in COBOL?

805


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

712


how do you reference the variable unblock file formats from cobol programs

748


Which mode is used to operate the sequential file?

669






What is the utilization of copybook in cobol? Could we utilize a similar copybook?

720


Have you used comp and comp-3 in your project? And how?

2008


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723


In COBOL programming, what is PERFORM? What is VARYING?

672


What is the difference between Global and External Variables?

666


How you can characterize tables in cobol?

718


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10617


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8167


What is the difference between comp and comp-3 usage?

681


Can we redefine the field of x(200) to less than 200?

820