<?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 Copying and Saving Current Program in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Copying-and-Saving-Current-Program/m-p/183557#M34878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to copy and save the a program that you have open into another directory automatically?&amp;nbsp; For instance,&amp;nbsp; I have a production version of SAS open and I run it.&amp;nbsp; I would like the SAS program to automatically save and place a copy of itself in another location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Production SAS program located C:\&lt;/P&gt;&lt;P&gt;When it's running it's exporting data to A:\&lt;/P&gt;&lt;P&gt;I want to save and copy the program from C:\ to A:\ automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jul 2014 16:50:51 GMT</pubDate>
    <dc:creator>Chiefsfan4ever</dc:creator>
    <dc:date>2014-07-17T16:50:51Z</dc:date>
    <item>
      <title>Copying and Saving Current Program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-and-Saving-Current-Program/m-p/183557#M34878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to copy and save the a program that you have open into another directory automatically?&amp;nbsp; For instance,&amp;nbsp; I have a production version of SAS open and I run it.&amp;nbsp; I would like the SAS program to automatically save and place a copy of itself in another location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Production SAS program located C:\&lt;/P&gt;&lt;P&gt;When it's running it's exporting data to A:\&lt;/P&gt;&lt;P&gt;I want to save and copy the program from C:\ to A:\ automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 16:50:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-and-Saving-Current-Program/m-p/183557#M34878</guid>
      <dc:creator>Chiefsfan4ever</dc:creator>
      <dc:date>2014-07-17T16:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Copying and Saving Current Program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-and-Saving-Current-Program/m-p/183558#M34879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simplest way might be to write a batch file to do it.&amp;nbsp; It really depends on the tools you have available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-and-Saving-Current-Program/m-p/183558#M34879</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2014-07-21T13:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Copying and Saving Current Program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-and-Saving-Current-Program/m-p/183559#M34880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on what you want to achieve.&amp;nbsp; What value is there in copying a program over once its run, why not save the log there, that would show you what has been run (in full with options turned on).&lt;/P&gt;&lt;P&gt;There are a few ways, the simplest would be to have a main program which copy's this over using system commands - x 'copy "..." "..."';&lt;/P&gt;&lt;P&gt;You could also read the text file in and print it out to another file.&lt;/P&gt;&lt;P&gt;You could also re-direct the log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-and-Saving-Current-Program/m-p/183559#M34880</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-21T13:25:07Z</dc:date>
    </item>
  </channel>
</rss>

