How is sign stored in a comp-3 field?

Answer Posted / nitin

It is stored in the last nibble. For example if your number
is +100, it stores hex 0C in the last byte, hex 1C if your
number is 101, hex 2C if your number is 102, hex 1D if the
number is -101, hex 2D if the number is -102 etc...

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are declaratives and what are their uses in cobol?

714


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5690


Define static linking and dynamic linking.

669


What rules are to be followed while using the corresponding options?

641


IF I mention stop run in CICS what happens?

1896






What is length is cobol?

650


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

661


example for sub strings ? and refernce modifications whit output pls

1846


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1783


how to convert the recors form vsam file to db2 table tru file aid

2763


Describe the cobol database components?

681


Explain how to differentiate call by context by comparing it to other calls?

689


What are all the divisions of a COBOL program?

665


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1701


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1931