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 |
i have a requrement in A as viswa!@#$%&^**reddy i need to move viswareddy in B without junk values pls say how to do ths reply fast
Write down the divisions of cobol program?
In a program, there are 2 sections defined say SECTION-A and SECTION-B. There is a paragraph say CALC-INT in both the sections. If this para has to be called directly for SECTION-A, then PERFORM CALC-INT will not work as it is present in both sections. How the PERFORM statement has to be coded here?
How do you reference the following file formats from cobol programs?
I have a occurs for 100 times but it has executed 101 time what could be the reason?
In the JCL, how do you define the files referred to in a subroutine ?
soc-7 is a bad data,invalid data. when ever we are moving the alphabets in the position of numeric then we got this abend. so my question is if o1 ws-data pic 9(1) value passing the alphabet some x. then we got soc-7 or not? i want clarification ?
can we use variable picture clause as xx.99 in cobol.
What is IMPACT analysis?
I have a file it contain 10 records.i got abend at 8th record because of soc7.how do you know that perticular record got abend?
01 xxx pic 9(4). 01 yyy pic 9(6). move 123456 into yyy. move yyy to xxx. display yyy. what would be the value of yyy
The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how will you do that. in which level u should do it