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 -> 4
05 E PIC 9(3) COMP -> 2
SO TOTAL OF 21 BYTES
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
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?
What is the difference between PIC 9.99 and 9v99 in COBOL?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What is the difference between external and global variables in COBOL?
In COBOL programming, what is PERFORM? What is VARYING?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
Whats the difference between search & search ALL?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
How do you reference the fixed block file formats from cobol programs
What rules are followed by the search verb.
What is amode(31)
what are decleratives in cobol?
In COBOL, what is the different between index and subscript?