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 / priyanka

I think t will be 25 since

05 A PIC S9(4). - 5 :4 + 1 sign byte
05 B PIC XXXBXXX. - 7
05 C PIC ____9.99. - 8
05 D PIC S9(5) COMP-3. - 3
05 E PIC 9(3) COMP. - 2
__________________________________________
Total = 25 bytes

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State the various causes of s0c1, s0c5 and s0c7.

664


What is a SSRANGE and NOSSRANGE?

820


What is the usage of comp fields in cobol?

659


how can i see junk values in dclgen or in hostvariable of comp ?

2544


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

700






How many sections are there in data division in COBOL?

678


IF I mention stop run in CICS what happens?

1896


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

720


How to print 10 to 1 if the input have only 10 digit number?

811


What is inspect in cobol ?

803


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

675


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1958


Write down the divisions of cobol program?

671


Discuss about changing dataset name in proc.

761


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

681