<?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: How to delete the log file in batch mode in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-the-log-file-in-batch-mode/m-p/65553#M18697</link>
    <description>Consider that you may want to review the SAS log output, so it is possible to generate the SAS log to a file (with PRINTTO), and then if your processing is satisfactory to your liking, then run a post-processing DATA step to delete the file you are using to capture the SAS log, rather than just writing it to a dummy destination.  Explore using a SAS DATA step with CALL functions FILEEXIST, FILENAME, and FDELETE, in order to accomplish the special-handling of your generated log file.&lt;BR /&gt;
&lt;BR /&gt;
The link below is associated with the SAS companion for Windows platform documentation - other similar guides are provided for your operating environment.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS Functions and CALL Routines under Windows&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/function.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/function.htm&lt;/A&gt;</description>
    <pubDate>Thu, 20 Aug 2009 13:20:51 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-08-20T13:20:51Z</dc:date>
    <item>
      <title>How to delete the log file in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-the-log-file-in-batch-mode/m-p/65548#M18692</link>
      <description>Hello, &lt;BR /&gt;
&lt;BR /&gt;
I am using a macro that generate a huge Log file when excuting on batch mode.&lt;BR /&gt;
&lt;BR /&gt;
I want to delete the log file. &lt;BR /&gt;
&lt;BR /&gt;
any help?&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 19 Aug 2009 15:02:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-the-log-file-in-batch-mode/m-p/65548#M18692</guid>
      <dc:creator>nadra</dc:creator>
      <dc:date>2009-08-19T15:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the log file in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-the-log-file-in-batch-mode/m-p/65549#M18693</link>
      <description>If you don't need it at all, you can use PROC PRINTTO to direct it to the bit bucket.</description>
      <pubDate>Wed, 19 Aug 2009 17:11:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-the-log-file-in-batch-mode/m-p/65549#M18693</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-08-19T17:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the log file in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-the-log-file-in-batch-mode/m-p/65550#M18694</link>
      <description>Tell us more about your SAS operating environment (OS, whether SAS is installed locally or on a remote server), and your SAS version as well.  And, the recommendation by Doc@Duke is a good one, possibly even providing control to only delete the SAS-generated log file when a good completion occurs, as you choose to determine.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 19 Aug 2009 19:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-the-log-file-in-batch-mode/m-p/65550#M18694</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-08-19T19:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the log file in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-the-log-file-in-batch-mode/m-p/65551#M18695</link>
      <description>Hello, &lt;BR /&gt;
thank you for your responses!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
SAS 9.1.3 is installed on a remote server. I opearte the program and after I gather the results via filezilla. &lt;BR /&gt;
&lt;BR /&gt;
in my program I specified this command :&lt;BR /&gt;
proc printto log='..../myprogram.log' new; run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
but the log file exists again! &lt;BR /&gt;
&lt;BR /&gt;
what does mean bitbucket? how can I specify a null route when excecuting on a remote server?</description>
      <pubDate>Thu, 20 Aug 2009 08:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-the-log-file-in-batch-mode/m-p/65551#M18695</guid>
      <dc:creator>nadra</dc:creator>
      <dc:date>2009-08-20T08:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the log file in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-the-log-file-in-batch-mode/m-p/65552#M18696</link>
      <description>filename dummy dummy;&lt;BR /&gt;
proc printto log=dummy;&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
device-type &lt;BR /&gt;
specifies the type of device or the access method that is used if the fileref points to an input or output device or location that is not a physical file: &lt;BR /&gt;
 &lt;BR /&gt;
DUMMY specifies that the output to the file is discarded. &lt;BR /&gt;
&lt;BR /&gt;
Tip: Specifying DUMMY can be useful for testing. &lt;BR /&gt;
 &lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 20 Aug 2009 12:48:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-the-log-file-in-batch-mode/m-p/65552#M18696</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-08-20T12:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the log file in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-the-log-file-in-batch-mode/m-p/65553#M18697</link>
      <description>Consider that you may want to review the SAS log output, so it is possible to generate the SAS log to a file (with PRINTTO), and then if your processing is satisfactory to your liking, then run a post-processing DATA step to delete the file you are using to capture the SAS log, rather than just writing it to a dummy destination.  Explore using a SAS DATA step with CALL functions FILEEXIST, FILENAME, and FDELETE, in order to accomplish the special-handling of your generated log file.&lt;BR /&gt;
&lt;BR /&gt;
The link below is associated with the SAS companion for Windows platform documentation - other similar guides are provided for your operating environment.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS Functions and CALL Routines under Windows&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/function.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/function.htm&lt;/A&gt;</description>
      <pubDate>Thu, 20 Aug 2009 13:20:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-the-log-file-in-batch-mode/m-p/65553#M18697</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-08-20T13:20:51Z</dc:date>
    </item>
  </channel>
</rss>

