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 / ezhil_18
@ above
COMP3 data require always requrie n+1/2 bytes. here 5+1/2
takes only 3 bytes not 4 bytes.
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
What rules are followed by the search verb.
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 LINKAGE SECTION used in COBOL?
What is amode(24)?
What is the difference between PIC 9.99 and PIC9v99?
Why did you choose to work with ibm mainframe cobol programming?
how do you reference the rrds file formats from cobol programs
What is rmode(24)
What is the usage of comp fields in cobol?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is the utilization of copybook in cobol?
how do you reference the fixed unblock file formats from cobol programs
Are you comfortable in cobol or jcl?
What do you understand by psb and acb?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.