How will 128 be saved in s9 (3) comp-3
How will 12 be saved in s9 (2) comp
Answer Posted / kavithachandrashekar
comp-3 is stored as (n+1)/2 where n is number of digits.Since here n is 3 for numeric 128,(3+1)/2=2 bytes.
12 8C here c represents positive(D for negative)
Comp is stored as n/2,where n is number of digits.Since n is 2 for numeric 12,(2)/2=1 byte(1/2 word)
12 is saved as 12.
| Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What are all the divisions of a COBOL program?
What are 77 levels used for?
What is amode(31)
Can we change the password using ALTER? anyone tried and changed?
) what is the difference between AID and HANDLE AID?
What is inspect in cobol ?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
What is a scope terminator give example?
Write a cobol program making use of the redefine clause.
How do you get the data to code the BMS macro?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What is the difference between Call and a Link?
how do you reference the printer file formats from cobol programs