Page 1 of 1

Can we move a value of 9(2)v99 COMP to 9(2).99?

Posted: Mon Jun 16, 2014 2:10 pm
by Disha Shetty
Hi,

Can we move a value of 9(2)v99 COMP to 9(2).99? I think I know the answer an the answer is yes,we can move but why it is allowed? As one is implied decimal point while other is actual decimal, so why there is no complain from cobol?

Re: Can we move a value of 9(2)v99 COMP to 9(2).99?

Posted: Mon Jun 16, 2014 2:47 pm
by zprogrammer
Suggest you to read Enterprise COBOL for z/OS 4.1.0>Programming Guide>Part 1: Coding your program>Working with numbers and arithmetic>Displaying numeric data

check this link

http://www-01.ibm.com/support/knowledge ... pari06.htm

Hope it answers your question

Re: Can we move a value of 9(2)v99 COMP to 9(2).99?

Posted: Mon Jun 16, 2014 4:07 pm
by William Collins
How else would you ever get a decimal-point to appear, if you could never source it from an implied decimal-point?