Hi, all. I've had the good fortune of being able to do almost all of my RPG programming in the ILE environment, but I've maintained older RPG, too. In continuing my assignment of converting 15-30-year-old code from a purchased ERP package (which I will not name, for the protection of people whose initials may be "J.D.E."), I've come across a subroutine that starts with the following two lines of code:
If I'm correct in understanding that subroutines (unlike subprocedures) share global memory, it seems to me that this is not "instantiating" local copies of variables #MCU and #FILE, but just moving the fields to themselves. But this makes no sense!
So, what am I missing? What might be going on?
Code:
C* CL0N01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq. C* C* Define Parameters C* CSR MOVE #MCU #MCU 12 CSR MOVE #FILE #FILE 10
So, what am I missing? What might be going on?
Comment