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

what if any ,is the syntex error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.

5 Answers   TCS,


Define static linking and dynamic linking.

0 Answers  


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

0 Answers  


wht is the diff b/w if and evaluate stmts ?

2 Answers   DELL,


BY seeing a program how can we say that it is static call or dynamic call

5 Answers   CGI,






01 x pic s9(8) comp. How will the following value be internally allocated '18787'

4 Answers   Steria,


what is the difference between occurs and occurs depending on? i dont think so there is the difference in storage..then why we should use occurs depending on?

9 Answers   TCS, Tech Mahindra,


what is linkcard in cobol?

1 Answers   TCS,


i have a file which contains records like 10,30,90,50,20,40,80,60,70 i want to display these records in reverse order like 70,60,80,40,20,50,90,30,10 please give me the cobol code (do not sort the records)

3 Answers   Cap Gemini, Mind Tree,


what is the difference b/w level no.01 & level no.77?

3 Answers   HCL,


what are decleratives in cobol?

0 Answers   GGG, Satyam,


what is the advantage of sync class

3 Answers   ACS,


Categories