what is the use of comp2 ? where can we use it with example ?
Answers were Sorted based on User's Feedback
Answer / smartboy
COMP-2 has double precision. Generally used in scientific
data calculations.
USAGE COMP-2 EXAMPLE.
A very simple practical example can be
If DB2 decleration of column is DOUBLE then we have to use
corresponding COBOL host variable as COMP-2
For float data type use COMP-1
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / 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 |
Answer / srinivas yadav
It is used to reduce the Momery space.
comp2:
1)The data stored in the form of Hexa-decimal format.
2)The no. of bytes stored as s9(1)to s9(18)is 8 bytes of
memory.
3)It takes more precession values.
| Is This Answer Correct ? | 0 Yes | 1 No |
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What are the different forms of EVALUATE statement?
Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ? Thanks krishna chaitanya
What is the difference between goback, stop run and exit program in cobol?
Write a program to enter and display the names of students in a class using the occurs clause.
what is record label is empty or standard in file description of data division?
what is the difference between external and global variables?
suppose a cobol programme A calling programme B,C and D. If C undergoes some change what if A,B,C,D need to be recompiled or only C nee to be recompliled.
I encountered an error when I move spaces to a numeric field?What should I do to move spaces on that field?help please.
What do you feel makes a good program?
What are ISOLATION LEVELS? Where do we need to specify them in compiling JCL (Exactly which statement and what is syntax for it)?
wht is packed decimal in cobol