How is sign stored in a COMP field ?

Answer Posted / dimpy17

for negative value,2;s compliment is taken.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you define single dimensional array and multidimensional array in your cobol?

667


How you can read the file from bottom?

657


) what is the difference between AID and HANDLE AID?

1630


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

769


What is the Purpose of Pointer in the string?

639






What is the use of intialize verb?

742


Difference between cobol and cobol-ii?

704


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

670


What are the different types of condition in cobol and write their forms.

654


Have you used comp and comp-3 in your project? And how?

2006


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1111


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1868


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

892


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1923


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

672