I am trying to find a replacement in free format RPG for the MOVEA opcode to populate an entire string with the same character.
Example: populate a 198 character field in a printer file with the equal sign (=).
We have older code that looks like this. How can I do this is in /free?
D UDL S 198 DIM(1)
D UNL S 198A
C MOVE *ALL'=' UDL
C MOVEA UDL UNL
Example: populate a 198 character field in a printer file with the equal sign (=).
We have older code that looks like this. How can I do this is in /free?
D UDL S 198 DIM(1)
D UNL S 198A
C MOVE *ALL'=' UDL
C MOVEA UDL UNL



Comment