[...] Why did I create a new variable instead of reusing the argument variable? Because the SAS/IML language uses a pass-by-reference scheme to send variables into functions. This means that any modifications to the variable in the module …