Page 1 of 1

Difference between comp and comp4

PostPosted: Thu Jul 30, 2009 7:10 pm
by Nazma
Hi,

Can anyone explain me what is the difference between comp and comp4.

Regards,
Nazma

Re: Difference between comp and comp4

PostPosted: Thu Jul 30, 2009 7:35 pm
by swd
To my knowledge there is no difference, they are both binary fields. You can specify BINARY, COMP or COMP-4, but they are all the same. At least this is my understanding. I use COMP in any code I write, but I have seen BINARY and COMP-4 used.

Re: Difference between comp and comp4

PostPosted: Fri Jul 31, 2009 7:31 am
by dick scherrer
Hello,

Please see if this clarifies:
http://publibz.boulder.ibm.com/cgi-bin/ ... 5.3.12.3.2?

Re: Difference between comp and comp4

PostPosted: Mon Aug 17, 2009 3:19 pm
by Anuj Dhawan
Both are equivalent of BINARY.