Certainly.
Because I can’t be assured that this Wiki editor will do what I want, I will make blanks appear as dots.
<pre>
1. Movel CHR1 CHR4
= ‘PEN……………….’
2. Move CHR2 CHR4
= ‘PEN………MYGET…..’
3. Eval CHR4 = CHR3
= ‘GOOD………………’
4. Move CHR1 CHR4
= ‘GOOD…………..PEN.’
</pre>
Note that you could have used the padding operation extender (P) to clear the receiving string before you moved data into it.
Regards,
Sloopy
Discuss This Question: 4  Replies