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



Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i d..

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

Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i d..

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

Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i d..

Answer / raja

It should give S0C7. Data Exception.

Is This Answer Correct ?    2 Yes 7 No

Post New Answer

More COBOL Interview Questions

i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

0 Answers  


I have put two write operations in a single para for two different conditions.Will that lead to an abend or run successfully and write two records?

1 Answers   CTS,


What is the difference between comp and comp-3?

0 Answers  


how to display the dataset information?

2 Answers  


01 WS-NAME PIC X(10) OCCURES 2. by this we can get ws-name 2 times. My qustion is how can we access the second name

5 Answers   TCS,


What is the difference between static call & Dynamic call?

2 Answers   CSC, TCS,


how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas

3 Answers   IBM,


What is the difference between CALL BY VALUE and CALL BY CONTENT?

7 Answers  


what is MSGLEVEL?

1 Answers   IBM,


what r the types of perform statement

4 Answers  


In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data inside the table)

3 Answers   Keane India Ltd,


How to print 10 to 1 if the input have only 10 digit number?

0 Answers  


Categories