Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
You can't move '123' intp PIC S9(9).
Within quotes, if you move some value to a variable, it is expected to be a alphanumeric. In your case...your receiving variable is declared as numberic.
77 VAR1 PIC S9(09) COMP
then you can only
MOVE 123 TO VAR1
but not '123'