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
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
i want a program using by if, evaluate , string, unstring, perform, occurs?
How can you get the ksds file records into your cobol program?
example for sub strings ? and refernce modifications whit output pls
what is search and searchall?what is the diffrence between them?give an best example?
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?
Have you used comp and comp-3 in your project? And how?
What rules are followed by the search verb.
What is length is cobol?
Explain how you can characterize tables in cobol?
how do you reference the esds vsam file formats from cobol programs
What is amode(24)?
Can we redefine the field of x(200) to less than 200?
How you can read the file from bottom?
what are decleratives in cobol?