Redirecting Output and Logging Information to a File

SAS Data Integration Studio jobs generate SAS code when they are executed. It is sometimes useful to designate destinations for the outputs and logs that are associated with this code. To specify alternative destinations for the SAS log and SAS output, add the following options to the sas command that starts the SAS Workspace Server.
  1. In SAS Management Console, expand the Server Manager, and then expand the node of the logical workspace server that is used by SAS Data Integration Studio clients.
  2. Right-click the icon for the physical SAS Workspace Server, and select Properties from the pop-up menu.
  3. In the Properties window, click the Options tab.
  4. Edit the text in the Command text box. By default, this text is set as follows:
    sas -config "SAS-configuration-directory\Lev1\appserver\sasv9_usermods.cfg"
    To route the SAS log to a file, edit the command to make it look something like this:
    sas -config "C:\SAS\Config\Lev1\SASApp\sasv9_usermods.cfg"
     -log DIStudioLog %H%M.log -logparm "rollover=auto"
     
    For routing the SAS output to a file, the command should look like this:
    sas -config "SAS–configuration-directory\Lev1\SASApp\sasv9_usermods.cfg"
     -print print-file-name.lst
     
  5. If you are redirecting the log, enter the following parameter in the Object Server Parameters text box:
    applevel=2
    This allows an appropriate level of log information to be routed to the file.
  6. Click OK in the Workspace Server Properties dialog box.