<?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: batch run output to the same folder where programs are in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/batch-run-output-to-the-same-folder-where-programs-are/m-p/328819#M73469</link>
    <description>&lt;P&gt;It is default behaviour to output any output to the run location if no paths are supplied. &amp;nbsp;Within your program you can re-direct your output to files by giving path/name in the correct place. &amp;nbsp;You can also redirect the log and the output to where you want by using:&lt;/P&gt;
&lt;P&gt;proc printto log="path/file";&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;For example.&lt;/P&gt;
&lt;P&gt;You would still get a .log in the directory, but all other output you can re-direct them.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2017 17:06:05 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-01-31T17:06:05Z</dc:date>
    <item>
      <title>batch run output to the same folder where programs are</title>
      <link>https://communities.sas.com/t5/SAS-Programming/batch-run-output-to-the-same-folder-where-programs-are/m-p/328792#M73450</link>
      <description>&lt;P&gt;When I want to run many SAS programs in a batch mode (see below), the output were generated in the same folder as where the programs are, and ALSO in the folder that I specified in the setup.sas file, which is a subfolder.&lt;/P&gt;
&lt;P&gt;How to fix this dual output issue? I want the output only in the subfolder that I specified in setup.sas.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;path="C:\Program Files\SAS\SASFoundation\9.2(32-bit)"; path

call sas dm.sas
call sas sv.sas
call sas se.sas
call sas ae.sas
call sas cm.sas
call sas da.sas
call sas ds.sas
call sas eg.sas
call sas ex.sas
...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 16:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/batch-run-output-to-the-same-folder-where-programs-are/m-p/328792#M73450</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2017-01-31T16:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: batch run output to the same folder where programs are</title>
      <link>https://communities.sas.com/t5/SAS-Programming/batch-run-output-to-the-same-folder-where-programs-are/m-p/328819#M73469</link>
      <description>&lt;P&gt;It is default behaviour to output any output to the run location if no paths are supplied. &amp;nbsp;Within your program you can re-direct your output to files by giving path/name in the correct place. &amp;nbsp;You can also redirect the log and the output to where you want by using:&lt;/P&gt;
&lt;P&gt;proc printto log="path/file";&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;For example.&lt;/P&gt;
&lt;P&gt;You would still get a .log in the directory, but all other output you can re-direct them.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 17:06:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/batch-run-output-to-the-same-folder-where-programs-are/m-p/328819#M73469</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-01-31T17:06:05Z</dc:date>
    </item>
  </channel>
</rss>

