As is usually the case in SAS, there may be multiple ways to achieve each of these goals, but frequently an efficient, reproducible method will involve interface between the DATA step and the Macro facility. In this paper, I am going to introduce a CALL routine and a SAS function that ...