% SET LOCATION structure

Establish a location in a single output file where the MFG should place subsequent output lines. %SET-LOCATION can establish a new section in an output file, as well as reposition subsequent output lines at the end of a previously established section.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Syntax:

% SET LOCATION locationname

Parameters:

locationname Name of location. Locations are set on a per-file basis. The same location can appear in many output files.

Comments:

Use &APS-OUTPUT-LOCATION to determine the current output location.

Example:

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