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
What are all the divisions of a COBOL program?
How do we get current date from system with century in COBOL?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
how do you reference the variable unblock file formats from cobol programs
Which mode is used to operate the sequential file?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Have you used comp and comp-3 in your project? And how?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
In COBOL programming, what is PERFORM? What is VARYING?
What is the difference between Global and External Variables?
How you can characterize tables in cobol?
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 ......
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What is the difference between comp and comp-3 usage?
Can we redefine the field of x(200) to less than 200?