How is sign stored in a COMP field ?

Answer Posted / dev

the most significant bit is used as a sign bit if it is set
then the field is negetive if not than positive

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the ksds vsam file formats from cobol programs

752


how can i see junk values in dclgen or in hostvariable of comp ?

2635


What is the usage of comp fields in cobol?

753


how to refer the data field?

1903


What is the Purpose of Pointer in the string?

721






what is amode(24), amode(31), rmode(24) and rmode(any)?

790


What is the difference between perform … with test after and perform … with test before?

1002


How to remove 2 duplicate records and copy only one using job control language?

875


What are the different rules of SORT operation?

784


What type of SDLC u followed? Why?

1634


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

4950


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?

1892


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5496


Write the code to count the sum of n natural numbers.

789


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

847