<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Route SAS EG log to file on server in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1574#M502</link>
    <description>We also have the same problem where the log file is hardcoded in PROC PRINTTO statement. If there is a way to automate it on the server side to create a seperate log file per day per session... that would be highly appreciated. &lt;BR /&gt;
Thanks!!</description>
    <pubDate>Tue, 21 Nov 2006 22:06:37 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2006-11-21T22:06:37Z</dc:date>
    <item>
      <title>Route SAS EG log to file on server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1568#M496</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Is it possible to route the log of an Enterprise Guide SAS session, running on the server, to a file on the server?&lt;BR /&gt;
The reason is that we would like to analyze what the user is doing for query performance optimization.&lt;BR /&gt;
&lt;BR /&gt;
kind regards,&lt;BR /&gt;
Bart Heinsius.</description>
      <pubDate>Tue, 17 Oct 2006 15:26:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1568#M496</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2006-10-17T15:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Route SAS EG log to file on server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1569#M497</link>
      <description>You have to suböit the following code :&lt;BR /&gt;
&lt;BR /&gt;
1) prior executing anything else...&lt;BR /&gt;
&lt;BR /&gt;
PROC PRINTTO LOG="your server directory and file name";&lt;BR /&gt;
RUN ;&lt;BR /&gt;
&lt;BR /&gt;
Then all Log messages will be routed to the specified file.&lt;BR /&gt;
&lt;BR /&gt;
2) you end up all that with :&lt;BR /&gt;
&lt;BR /&gt;
PROC PRINTTO LOG=LOG ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
&lt;BR /&gt;
--------------&lt;BR /&gt;
&lt;BR /&gt;
Another (quicker) way to monitor performance without re-reading a whole Log (which is really cumbersome) :&lt;BR /&gt;
&lt;BR /&gt;
%LET start = DATETIME() ;&lt;BR /&gt;
/* all code that you want to submit */&lt;BR /&gt;
%LET end = DATETIME() ;&lt;BR /&gt;
%PUT It all took only %SYSEVALF(&amp;amp;end - &amp;amp;start) seconds ;</description>
      <pubDate>Wed, 18 Oct 2006 13:38:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1569#M497</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2006-10-18T13:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Route SAS EG log to file on server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1570#M498</link>
      <description>Oliver,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your reply.&lt;BR /&gt;
This would work, but a user has to program that himself.&lt;BR /&gt;
I would like a generic way to route the log, without the user having to do anything, without him even knowing it.&lt;BR /&gt;
I tried the altlog option on SAS server session invocation but that only gives startup and shutdown messages of the server session, not what the user executed.&lt;BR /&gt;
&lt;BR /&gt;
Or do you think that putting the proc printto code in the server autoexec file would do the trick? I expect that the user then doesn't get his sas log in EG anymore.&lt;BR /&gt;
&lt;BR /&gt;
regards,&lt;BR /&gt;
Bart.</description>
      <pubDate>Sat, 21 Oct 2006 16:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1570#M498</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2006-10-21T16:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Route SAS EG log to file on server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1571#M499</link>
      <description>to allow output and log to appear normally for user, you would have to trap -altlog. &lt;BR /&gt;
It sounds like you have trapped the wrong -altlog. &lt;BR /&gt;
If these jobs are started and run by an object spawner, then it is the start-up parameters for "spawned jobs" where you could insert some -altlog options. &lt;BR /&gt;
&lt;BR /&gt;
Good Luck&lt;BR /&gt;
&lt;BR /&gt;
Peter</description>
      <pubDate>Mon, 23 Oct 2006 12:36:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1571#M499</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-10-23T12:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Route SAS EG log to file on server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1572#M500</link>
      <description>I added the line (just as a test):&lt;BR /&gt;
&lt;BR /&gt;
-altlog /tmp/sassession.log&lt;BR /&gt;
&lt;BR /&gt;
to my sasv8.cfg.&lt;BR /&gt;
After starting the session, running a Listing report on sashelp.class and closing the project, /tmp/sassession.log says:&lt;BR /&gt;
&lt;BR /&gt;
1                                                          The SAS System                           22:10 Saturday, October 28, 2006&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Copyright (c) 1999-2001 by SAS Institute Inc., Cary, NC, USA.&lt;BR /&gt;
NOTE: SAS (r) Proprietary Software Release 8.2 (TS2M0)&lt;BR /&gt;
      Licensed to E.O.M. DATA B.V., Site 0088045005.&lt;BR /&gt;
NOTE: This session is executing on the Linux 2.6.17-2-686 platform.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
NOTE: This installation is running Base SAS hot fix bundle 82BX09.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
This message is contained in the SAS news file, and is presented upon&lt;BR /&gt;
initialization.  Edit the files "news" in the "misc/base" directory to&lt;BR /&gt;
display site-specific news and information in the program log.&lt;BR /&gt;
The command line option "-nonews" will prevent this display.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
NOTE: SAS initialization used:&lt;BR /&gt;
      real time           0.05 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Bridge protocol engine is closing connection with client that has concluded processing.&lt;BR /&gt;
NOTE: The SAS System used:&lt;BR /&gt;
      real time           59.70 seconds&lt;BR /&gt;
      cpu time            0.12 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
So I only see the startup and shutdown messages.</description>
      <pubDate>Sat, 28 Oct 2006 20:14:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1572#M500</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2006-10-28T20:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Route SAS EG log to file on server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1573#M501</link>
      <description>Basically we would like to have a same possibility.&lt;BR /&gt;
We have EG3 available for users via Citrix.&lt;BR /&gt;
They are using SAS8.2 on UNIX.&lt;BR /&gt;
&lt;BR /&gt;
In order to get insight in which tables/views are being used by the end-user we would like to have the possibility to scan the log. Therefor an answer to this topic would be highly appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Or if someone has a better option than using the SAS Log, please feel free to indicate this.</description>
      <pubDate>Thu, 16 Nov 2006 15:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1573#M501</guid>
      <dc:creator>Resa</dc:creator>
      <dc:date>2006-11-16T15:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Route SAS EG log to file on server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1574#M502</link>
      <description>We also have the same problem where the log file is hardcoded in PROC PRINTTO statement. If there is a way to automate it on the server side to create a seperate log file per day per session... that would be highly appreciated. &lt;BR /&gt;
Thanks!!</description>
      <pubDate>Tue, 21 Nov 2006 22:06:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1574#M502</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-11-21T22:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Route SAS EG log to file on server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1575#M503</link>
      <description>sorry to be so late in getting back to this !&lt;BR /&gt;
&lt;BR /&gt;
You have demonstrated the point I was trying to make.&lt;BR /&gt;
&lt;BR /&gt;
The infromation that you have trapped is not the session log you seek, but the session spawned by the server ~~ which calls yet-another session where your SAS code is run. I hope one day to discover just where that session's parameters are obtained. I do know that the similar spawning/calling sequence for running SAS DI Studio jobs, results in the autoexec and verbose options being ignored (other options may be ignored but I don't know). "Ignoring" like this guarantees problems, imho. &lt;BR /&gt;
&lt;BR /&gt;
Somewhere the caller of the session that actually processes your code has parameters like -sysin and perhaps could be extended to accept -altlog. Continue to search and ask.&lt;BR /&gt;
&lt;BR /&gt;
Good Luck&lt;BR /&gt;
&lt;BR /&gt;
Peter</description>
      <pubDate>Mon, 27 Nov 2006 21:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Route-SAS-EG-log-to-file-on-server/m-p/1575#M503</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-11-27T21:32:57Z</dc:date>
    </item>
  </channel>
</rss>

