Usage Note 34567: Capturing the PROC SQL code that is generated by SAS® Web Report Studio and SAS® Information Map Studio when using version 4.2 or later
Before you begin
The configuration file that you need to modify is on the machine that is hosting either the SAS Pooled Workspace Server or the SAS Workspace Server. (A workspace server is also referred to as a "compute server.") The pooled workspace server is used by default beginning with version 4.2. Your site might have chosen to use the standard workspace server instead. (For information about this choice, see SAS Note 37422.)
Both servers are defined within a SAS Application Server, which is logical container for a set of application server components that execute code. The Application Server is typically named SASApp. If you migrated a previous version of the software, the server might be named SASMain.
Generate the log
In order to generate a log that contains the SQL that is generated from SAS Web Report Studio or SAS Information Map Studio, complete these steps:
- On the machine that is hosting the server, navigate to the following location, depending on your server and your operating system.
Windows:
sas-config-dir\Lev1\SASApp\PooledWorkspaceServer\
sas-config-dir\Lev1\SASApp\WorkspaceServer\
UNIX:
sas-config-dir/Lev1/SASApp/PooledWorkspaceServer/
sas-config-dir/Lev1/SASApp/WorkspaceServer/
- Open the
sasv9.cfg
file in a plain text editor and copy the entire line that begins with -logconfigloc
. Close the file without saving any changes.
- In the same folder, open the
sasv9_usermods.cfg
file in a plain text editor.
- Paste the line that you just copied, and change the name of the XML file from
logconfig.xml
to logconfig.trace.xml
.
Here is an example of the modified option for a pooled workspace server running on Windows:
/* Set options */
-logconfigloc "C:\SAS\EBIserver\Lev1\SASApp\PooledWorkspaceServer\logconfig.trace.xml" |
Here is an example of the modified option for a pooled workspace server running on UNIX:
/* Set options */
-logconfigloc "/usr/local/SAS/EBIserver/Lev1/SASApp/PooledWorkspaceServer/logconfig.trace.xml" |
- Add the following option to write the settings of the system options to the log.
- (As requested by SAS Technical Support) Add the following option to record information such as index usage, merge processing, and sort utilities.
- (As requested by SAS Technical Support) Add the following option to output a list of the host-dependent resources that were used for each step and for the entire SAS session. A datetime stamp is included in the output.
- Open the
logconfig.trace.xml
file and set the level value
in the Application
message logger
section to "Info"
.
<!-- Application message logger -->
<logger name="App">
<level value="Info"/>
</logger> |
CAUTION: Do not set this logging level to DEBUG unless directed to do so by SAS Technical Support. If the logger is set to DEBUG, then the log is too difficult to read for this purpose.
- Restart the object spawner if you are using a pooled workspace server.
Example of a modified sasv9_usermods.cfg file
/*
* sasv9_usermods.cfg
*
* This config file extends options set in sasv9.cfg. Place your site-specific
* options in this file. Any options included in this file are common across
* all server components in this application server.
*
* Do NOT modify the sasv9.cfg file.
*
*/
-logconfigloc "C:\SAS\EBI\Lev1\SASApp\PooledWorkspaceServer\logconfig.trace.xml"
-verbose
-msglevel=i
-fullstimer
|
Log location
The log will be in the following location, depending on your operating system.
Windows:
sas-config-dir\Lev1\SASApp\PooledWorkspaceServer\Logs
sas-config-dir\Lev1\SASApp\WorkspaceServer\Logs
UNIX:
sas-config-dir/Lev1/SASApp/PooledWorkspaceServer/Logs
sas-config-dir/Lev1/SASApp/WorkspaceServer/Logs
Operating System and Release Information
SAS System | SAS Web Report Studio | z/OS | 4.2 | | 9.2 TS2M0 | |
Microsoft® Windows® for x64 | 4.2 | | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 4.2 | | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 4.2 | | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Standard Edition | 4.2 | | 9.2 TS2M0 | |
Microsoft Windows XP Professional | 4.2 | | 9.2 TS2M0 | |
Windows Vista | 4.2 | | 9.2 TS2M0 | |
64-bit Enabled AIX | 4.2 | | 9.2 TS2M0 | |
64-bit Enabled Solaris | 4.2 | | 9.2 TS2M0 | |
HP-UX IPF | 4.2 | | 9.2 TS2M0 | |
Linux | 4.2 | | 9.2 TS2M0 | |
Linux for x64 | 4.2 | | 9.2 TS2M0 | |
Solaris for x64 | 4.2 | | 9.2 TS2M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Date Modified: | 2009-09-17 09:54:25 |
Date Created: | 2009-01-22 10:55:16 |