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
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is the utilization of copybook in cobol?
How do get the result of your program directly on your pc?
A table has two indexes defined. Which one will be used by the SEARCH?
What is the difference between next sentence and continue in cobol programing language?
What is the difference between Call and a Link?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
Name the sections present in data division.
Have you used comp and comp-3 in your project? And how?
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?
What is the difference between comp and comp-3 usage?
What is the difference between Global and External Variables?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What rules are to be followed while using the corresponding options?