Is it possible to mutliply a comp variable with an comp-3
variable. Will there be any error if i do it?
Answers were Sorted based on User's Feedback
Answer / vikas pujar
Yes. Comp and Comp-3 are used to store numeric values so
operation is valid.
| Is This Answer Correct ? | 15 Yes | 1 No |
Answer / lu
yes, but never do it, you always multiply COMP with COMP
and COMP-3 with COMP-3....when you want to display : move
COMP to pic 9 (extend field) and comp-3 to pic 9 (extend
field)
| Is This Answer Correct ? | 9 Yes | 0 No |
At the minimum, which division of COBOL is enough to be coded?
How do you submit JCL via a Cobol program?
WORKING-STORAGE SECTION. 01 A PIC X(3) VALUE 'ABC' 01 B PIC 9(3). PROCEDURE DIVISION. MOVE A TO B. STOP RUN. OUTPUT IS: AB3 WHY AND HOW THIS IS HAPPENING.
can any one help -s806
what is the difference between PA & PF keys?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Explain Restart Logic in Cobol?
77 a pic x(4) value '1234' -----> instead of this 'abcd' 77 b pic 9(4) value zeros. move a to b what is the answers for both cases? IS it possible? Give me elementary move rules briefly......
can u give result for the fallowing example... 05 a pic 9(2) 05 b redifines a pic x(2). move 'xy' to b. display a,b.
What type of Call you would use if you don;t want the control back to the calling program?
What are different data types in cobol?
what are the isolation levels and where we use it in the db2 program