how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?

Answer Posted / shiva

COMP1-IT OCCUPIES 4 BYTES TO STORE UP TO 18 CHARACTERS
COMP2-IT OCCUPIES 8 BYTE TO STORE UP TO 18 CHARACTERS
COMP3-IT OCCUPIES HALF BYTE FOR EACH CHARACTER AND HALF BYTE
FOR SIGN...FOR ODD DATA LENGTH SO IT OCCUPIES
(15/2=7.5)+(1/2)=7.5+0.5=8 BYTES.

Is This Answer Correct ?    21 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

685


i want a program using by if, evaluate , string, unstring, perform, occurs?

4061


How can you get the ksds file records into your cobol program?

644


example for sub strings ? and refernce modifications whit output pls

1846


what is search and searchall?what is the diffrence between them?give an best example?

5561






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?

1806


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

2008


What rules are followed by the search verb.

638


What is length is cobol?

650


Explain how you can characterize tables in cobol?

638


how do you reference the esds vsam file formats from cobol programs

634


What is amode(24)?

684


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

820


How you can read the file from bottom?

660


what are decleratives in cobol?

1827