Hello all!
I don’t understand why MOVE LEFT doesn’t work with Dynamic target fields. Is there a reason?
Sample:
define data local
01 #a10 (A10) init <' abc'>
01 #a (A) DYNAMIC init <' def'>
01 #i4 (I4)
end-define
display #a10 #a (AL=10)
*
move left #a10 to #a10 /* works fine
move left #a to #a /* NAT0232 here
*
* /* so we have to do a for-loop
for #i4 = 1 to *LENGTH(#a)
if substr(#a,#i4,1) ne " "
move substr (#a,#i4) to #a
escape bottom
end-if
end-for
display #a10 #a (AL=10)
*
end