You can't MOVE LOW-VALUES TO a-binary-field. If you change it to MOVE ZERO it will compile and your field will get zero in it.
Reason is, LOW-VALUES is a COBOL Figurative Constant relating to the collating sequence used in your program. What relevance would collating-sequence have to a binary field?
Define binary, packed-decimal, plane zoned-decimal (PIC 9(n)), alpha-numeric (PIC X(n), alphabetic (PIC A(n)), numeric-edited and alphanumeric-edited fields. Try to MOVE LOW-VALUES to each of them, and see which work, and which don't, and try to understand why. It will be the same with HIGH-VALUES. What about SPACE? What about ZERO? Try them.
nicc, I've aksed Anuj to change that some time back...I'm not sure why he has not chnged it. I had the sme problem with two vriables and mixed the error messge and the declaration while posting here.
Bhaskar Virgo wrote:nicc, I've aksed Anuj to change that some time back...I'm not sure why he has not chnged it. I had the sme problem with two vriables and mixed the error messge and the declaration while posting here.
Sorry for the delay - I was driving back to home that time and did it bit later. On the other hand, you don't need to wait for a single person for such things, you can use report this post feature to report a post and can put in the details there. The report will go to the Moderators and the first available Moderator can do that for you.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.