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
What are the pertinent COBOL
i want a program using by if, evaluate , string, unstring, perform, occurs?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
In COBOL, what is the different between index and subscript?
What is link edit in cobol?
how do you reference the esds vsam file formats from cobol programs
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 is the utilization of copybook in cobol? Could we utilize a similar copybook?
explain sorting techniques in cobol program?
example for sub strings ? and refernce modifications whit output pls
Have you used comp and comp-3 in your project? And how?
How do u write test cases?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
Explain how to differentiate call by context by comparing it to other calls?