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 |
Can a REDEFINES clause be used along with an OCCURS clause? if yes, 01 WS-TABLE. 03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'. 03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you expect? if no,why?
How does IDMS communicate with CICS?
What is Alternate Index ? How is it different from regular index ?
give the examples of strings in cobol
How to read records in reverse order in flat file? I know we can do it by reading all records into an array.... Then read records in reverse order by using subscript or index but can any body give me the exact code.
Discuss about changing dataset name in proc.
What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(9) VALUE SPACES. 01 WS-VARN REDEFINES WS-VARX PIC 9(9).
how to convert the recors form vsam file to db2 table tru file aid
How is sign stored in a comp-3 field?
WE HAVE 5 DIFFERENT RECORDING MODE IN COBOL.FIXED, FIXEDBLOCK, VARIABLE, VARIABLEBLOCK AND UNDEFINED. WHAT IS THE DIFFERENCE AMONG ALL AND WHICH TYPE OF FORMAT SHOULD BE USED WHEN
What is the difference between PIC 9.99 and 9v99?
What is the difference between comp and comp-3 usage? Explain other COBOL usage?s.