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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

702


i need a small 3d program using inline and outline.

1629


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

806


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

701


how do you define single dimensional array and multidimensional array in your cobol?

663






What is a SSRANGE and NOSSRANGE?

808


HOw can I get the negative sign while deduct high value from low value

1779


Differentiate between structured cobol programming and object-oriented cobol programming.

658


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

639


Explain about different table spaces.

641


Write down the divisions of cobol program?

660


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2321


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1906


Write some characteristics of cobol as means of business language.

610


how do you reference the printer file formats from cobol programs

644