<?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 New option doesnt seem to work using filename in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/New-option-doesnt-seem-to-work-using-filename/m-p/126499#M34731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename outfile '/camidata/usr_data/v32516/LEGAL_COMPLIANCE.txt' NEW;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; proc printto print=outfile;&lt;BR /&gt; run;&lt;/P&gt;&lt;P&gt; proc print data=ABC_waterfall;&lt;BR /&gt; title 'WATERFALL DETAILS';&lt;BR /&gt; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I run the program again, it is appending to the contents of the file rather than creating it all over again.&lt;/P&gt;&lt;P&gt;Could someone help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Mar 2013 11:16:56 GMT</pubDate>
    <dc:creator>KarthikDeepak</dc:creator>
    <dc:date>2013-03-04T11:16:56Z</dc:date>
    <item>
      <title>New option doesnt seem to work using filename</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/New-option-doesnt-seem-to-work-using-filename/m-p/126499#M34731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename outfile '/camidata/usr_data/v32516/LEGAL_COMPLIANCE.txt' NEW;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; proc printto print=outfile;&lt;BR /&gt; run;&lt;/P&gt;&lt;P&gt; proc print data=ABC_waterfall;&lt;BR /&gt; title 'WATERFALL DETAILS';&lt;BR /&gt; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I run the program again, it is appending to the contents of the file rather than creating it all over again.&lt;/P&gt;&lt;P&gt;Could someone help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 11:16:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/New-option-doesnt-seem-to-work-using-filename/m-p/126499#M34731</guid>
      <dc:creator>KarthikDeepak</dc:creator>
      <dc:date>2013-03-04T11:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: New option doesnt seem to work using filename</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/New-option-doesnt-seem-to-work-using-filename/m-p/126500#M34732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put NEW in the proc printto statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 11:23:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/New-option-doesnt-seem-to-work-using-filename/m-p/126500#M34732</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-03-04T11:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: New option doesnt seem to work using filename</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/New-option-doesnt-seem-to-work-using-filename/m-p/126501#M34733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&amp;nbsp; Karthik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H6&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;"NEW" option is available in Proc Printot procedure,it &lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;clears any information that exists in a file and prepares the file to receive the SAS log or procedure output.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H6&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not use that in Filename statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use NEW option in Proc Printto procedure as suggested by Data_null_&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc printto print='&lt;SPAN class="emphMono" style="font-family: monospace, 'courier new', courier, fixed; font-style: italic;"&gt;output-file&lt;/SPAN&gt;'&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;new&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks &amp;amp;Regards.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sanjeev.K&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 11:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/New-option-doesnt-seem-to-work-using-filename/m-p/126501#M34733</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2013-03-04T11:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: New option doesnt seem to work using filename</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/New-option-doesnt-seem-to-work-using-filename/m-p/126502#M34734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was really dumb of me, I misplaced the NEW option.&lt;BR /&gt;Thanks for your help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 16:44:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/New-option-doesnt-seem-to-work-using-filename/m-p/126502#M34734</guid>
      <dc:creator>KarthikDeepak</dc:creator>
      <dc:date>2013-03-04T16:44:12Z</dc:date>
    </item>
  </channel>
</rss>

