We are running Microfocus Cobol in a Linux Environment and recently upgraded to VisulCobol 2 2 1.
We have discovered a couple of things where this version is acting in a different way compared to our old one.
I have one example that I would like to share. Maybe someone else has faced the same problem.
01 W-INIT PIC X(20) VALUE '1234567890ABCDEFGHIJ'.
01 X1 PIC X(20) VALUE SPACE.
MOVE W-INIT TO X1
MOVE X1(10:10) TO X1(11:10)
After the second MOVE X1 will contain '12345678900000000000' .
It seems like the tenth position,"0" in this case, will duplicate into position 11 and 10 positions forward. This is a different behaviour compared to our previous version where it worked fine.
If moving to a new variable it works fine, but if you are trying to move around within the same variable you get this problem.
There is of course a simple way to work around this problem by moving to another variable but this kind of sourcecode are in quite a lot of places so I would prefer another solution. Compile-option or something like that.
Anyone had this trouble?