/* Method 4: Macro with PUT and %INCLUDE Statements       */

   /* Step 1: Read parameter file and write macro calls out
   /* to an external file */
data _null_;
   set pfile;
   file dd(tempcode);
   put '%process(' strand ',' grade ',' form ',' mnum
              ',' onum ',' mstart ',' ostart ')';

________________________________________________________________________

%process(m,4,11,19,3,9,29)
%process(m,4,12,18,5,12,31)
more data lines
%process(m,6,20,18,3,12,31)

   /* Step 2: Include the output file of step 1 to invoke the */
   /* macro that processes data  */
%include dd(tempcode);