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 modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?

3 Answers   TCS,


What is static and dynamic call in cobol?

0 Answers  


What is EIBCALEN? Why it is used?

9 Answers   ADP,


In an EVALUTE statement is the order of the WHEN clauses significant?

4 Answers  


Which of the following paragraphs is compulsory in every COBOL program? (a) SPECIAL-NAMES (b) PROGRAM-ID (c) FILE-CONTROL (d) OBJECT-COMPUTER

4 Answers  






what are the steps to sort in a cobol program?

2 Answers   Patni,


How many types of sorts are there in cobol?

5 Answers   Cap Gemini,


What is the difference between goback, stop run and exit program in cobol?

0 Answers  


what is difference between the sysabend and userabend?

2 Answers  


What is the usage of comp fields in cobol?

0 Answers  


Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?

2 Answers   TCS,


Can we use icetool in cobol program?

3 Answers  


Categories