<?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: Project log file export to daily folder for future checking in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Project-log-file-export-to-daily-folder-for-future-checking/m-p/633449#M187909</link>
    <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;The log also need be displayed in the normal window for error checking.&lt;/EM&gt;&lt;BR /&gt;SAS doesn't do that . You have to choose sadly.&lt;/P&gt;
&lt;P&gt;What you can do if you want is open the log file after the run with something like&lt;/P&gt;
&lt;P&gt;call system("notepad &amp;amp;logfile");&lt;/P&gt;
&lt;P&gt;or dump it in the log window by reading it with a data step.&lt;BR /&gt;Even better: parse it with a data step to display a summary of events.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might also want to give your log files better names, by including the program/project name and date stamps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2020 02:36:05 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-03-20T02:36:05Z</dc:date>
    <item>
      <title>Project log file export to daily folder for future checking</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Project-log-file-export-to-daily-folder-for-future-checking/m-p/633199#M187823</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am stuck on export the project log for future checking/analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;project&amp;nbsp;has a couple of work flow and each includes a number of programmes. The intention is to export the project log to daily folder together with the data outputs for future investigation. The log also need be displayed in the normal window for error checking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently I have below issues that I don't have a solution yet:&lt;/P&gt;
&lt;P&gt;1)&amp;nbsp;program logs in the flow are displayed on respective log tab as well as in the project log&lt;/P&gt;
&lt;P&gt;2) if one of the program been run twice due to debugging, only the final successful log gets to write to the project log&lt;/P&gt;
&lt;P&gt;3) The project log exported looks very messy. How to make it readable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions will be appreciated.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 932px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37031iAC786A81E983168E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 10:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Project-log-file-export-to-daily-folder-for-future-checking/m-p/633199#M187823</guid>
      <dc:creator>Suzy_Cat</dc:creator>
      <dc:date>2020-03-19T10:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Project log file export to daily folder for future checking</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Project-log-file-export-to-daily-folder-for-future-checking/m-p/633331#M187876</link>
      <description>&lt;P&gt;You will have to clarify what you mean by "messy". It should be a text file just like the log. If the program you use to view the log file is set to display a shorter line there may be line wrap issues.&lt;/P&gt;
&lt;P&gt;Or are you getting lots of warnings, invalid data messages or similar. You may want to copy from the log, or that generated file and paste an example into a code box on the forum opened with either the &amp;lt;/&amp;gt; or "running man" icons above the message window. Please use the code box for such text as the message windows on this forum will reformat text. And images are pretty hard to read sometimes and may not provide a good example of what you have issues with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might consider why you have the NEW option on your proc printto if you want to see more than the latest run's log.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 15:54:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Project-log-file-export-to-daily-folder-for-future-checking/m-p/633331#M187876</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-03-19T15:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Project log file export to daily folder for future checking</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Project-log-file-export-to-daily-folder-for-future-checking/m-p/633437#M187904</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;Thanks for your advice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ideally I wish I could check the each program log on the normal log destination as well as check the whole project log after the project being closed. This means we would have a copy of project log for the daily data and can be reviewed at a later time for any issue investigation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Messy means not readable, no proper line breaks as per screenshot:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 311px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37062i1E16D77789D903F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 21:03:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Project-log-file-export-to-daily-folder-for-future-checking/m-p/633437#M187904</guid>
      <dc:creator>Suzy_Cat</dc:creator>
      <dc:date>2020-03-19T21:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Project log file export to daily folder for future checking</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Project-log-file-export-to-daily-folder-for-future-checking/m-p/633449#M187909</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;The log also need be displayed in the normal window for error checking.&lt;/EM&gt;&lt;BR /&gt;SAS doesn't do that . You have to choose sadly.&lt;/P&gt;
&lt;P&gt;What you can do if you want is open the log file after the run with something like&lt;/P&gt;
&lt;P&gt;call system("notepad &amp;amp;logfile");&lt;/P&gt;
&lt;P&gt;or dump it in the log window by reading it with a data step.&lt;BR /&gt;Even better: parse it with a data step to display a summary of events.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might also want to give your log files better names, by including the program/project name and date stamps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 02:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Project-log-file-export-to-daily-folder-for-future-checking/m-p/633449#M187909</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-03-20T02:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Project log file export to daily folder for future checking</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Project-log-file-export-to-daily-folder-for-future-checking/m-p/633653#M187975</link>
      <description>&lt;P&gt;Notepad is somewhat notorious for the line wrap on/off setting. If you have Word Wrap on, the check mark in the Format menu, then when you resize the window the lines will wrap to the width of the window. So the picture you show with a narrow window is likely caused by the combination of Word Wrap being on and the window size. If you turn the Word Wrap off the the lines will not wrap but will disappear off to the right of a narrow window. Or make the window wide enough to show about 80 characters per line.&lt;/P&gt;
&lt;P&gt;Or you can associate LOG files with another program that reads text type files such as WordPad and use that instead of Notepad. Notepad is not a full featured editor by any stretch.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 15:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Project-log-file-export-to-daily-folder-for-future-checking/m-p/633653#M187975</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-03-20T15:39:56Z</dc:date>
    </item>
  </channel>
</rss>

