what is the use of comp2 ? where can we use it with example ?

Answer Posted / kumar

Internal representation of COMP 2 data type is Hexadecimal
requires double word for the data item to store. Used for
accurate calculations ( more precessions )

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between comp and comp-3 usage?

681


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1958


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1657


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


Difference between array and sub-script ?

1169






) how do u code after getting data?

1582


What are the rules of the move verb?

709


Difference between cobol and cobol-ii?

715


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


How many bytes S(8) comp field occupy and its maximum value?

1637


How do define dynamic array in cobol.

674


What is perform what is varying?

711


how do you reference the rrds file formats from cobol programs

803


State the various causes of s0c1, s0c5 and s0c7.

665


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.

1120