% SET LOCATION locationname
| locationname | Name of location. Locations are set on a per-file basis. The same location can appear in many output files. | 
Establish and save the current output location so that it can be reset at the end of a macro.
%* SAVE THE NAME OF THE CURRENT LOCATION
% &SAVE-LOCATION = &APS-OUTPUT-LOCATION
% SET LOCATION MYSECTION
      .
      .
      .
%* RESTORE WHERE WE WERE OUTPUTTING LINES TO PREVIOUSLY
% SET LOCATION &SAVE-LOCATION
               	 
Comments:
Use &APS-OUTPUT-LOCATION to determine the current output location.