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 |
How to use the same cobol program in Batch and CICS onlines ? Please expalin with an example. Thanks in advance.
Should I use STOP RUN in the sub program??why?
SSRange is used to do a range check on which of the Following. SUBSCRIPT,INDEX,REFERENCE MODIFICATION,Run-time option.
i want to store 20 digits . h will u do it in cobol ?
Why we are using comp and comp-3 in real time projects?
What is an explicit scope terminator?
what is the minimum number of lines a Cobol program should have to successfully compile and run
11 Answers ABC, Societe Generale,
Can a Search can be done on a table with or without Index?
What are subroutines ? and how do we pass data to the sub routines?
How to Write the RESTART Logic Using COBOL?
4 Answers GalaxE, L&T, Syntel, TCS,
Can you REWRITE a record in an ESDS file? Can you DELETE a record from it?
6 Answers ABC, IBM, Mphasis, Wipro,
what is the difference between implicit and explicit scope terminator with example?