I move part of a declared area to a controlled one, and again from the same area to another variable. The second time, the data inside the area I'm moving from haven't keep the information.
ARE1S1 = SUBSTR(AREA11,3,JJ); Here AREA11 has 'ACACFECHA A9912' and more until 666 characters
CLAVI = SUBSTR(AREA11,1,25); Here AREA11 has '0101010101010101010101010'
There are no instructions between. If I change the second sentence:
CLAVI = SUBSTR(ARE1S1,1,25); I get CLAVI=''ACACFECHA...' the first 25 characters of AREA11 that were moved to ARE1S1.
With PL/I 3.8 it is working without problem, but testing the same program in PL/I 4.4 it doesn't. First of all, I'm a beginner with PL/I, and I don't know if there has been any change in the way the compiler manages the memory were variables are stored.
Does anyone had an idea of what has changed?
Thanks in advance
amartinmar