<?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: Regarding Datafiles restore in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361565#M85302</link>
    <description>&lt;P&gt;I would suggest if your at the stage where your trying to restore something from old version in anything other than toal fail, then your to late in the process. &amp;nbsp;Look at it earlier on, have a central data area, where users copy data out to working areas. &amp;nbsp;I.e. prevent the need to rollback before it happens. &amp;nbsp;Ok, it wont cover all eventualities, but should minimize them.&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2017 12:55:54 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-05-25T12:55:54Z</dc:date>
    <item>
      <title>Regarding Datafiles restore</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361547#M85292</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Would like to know that the sas SAS7BDAT File (.sas7bdat) can be restored to the previous version or&amp;nbsp;the date by using sas programmings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;If yes please proivde sas codings for the same.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 12:32:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361547#M85292</guid>
      <dc:creator>rajenr</dc:creator>
      <dc:date>2017-05-25T12:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Datafiles restore</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361557#M85298</link>
      <description>&lt;P&gt;Unless you &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000243174.htm" target="_blank"&gt;added generations&lt;/A&gt; to the dataset, you have no way to recreate an earlier version of a SAS dataset by SAS means, short of re-running the code that produced the dataset in the first place. When SAS rewrites a dataset, the previous version of the dataset is deleted.&lt;/P&gt;
&lt;P&gt;So your best bet is a multi-generation backup from which you can restore the wanted version.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 12:49:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361557#M85298</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-25T12:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Datafiles restore</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361565#M85302</link>
      <description>&lt;P&gt;I would suggest if your at the stage where your trying to restore something from old version in anything other than toal fail, then your to late in the process. &amp;nbsp;Look at it earlier on, have a central data area, where users copy data out to working areas. &amp;nbsp;I.e. prevent the need to rollback before it happens. &amp;nbsp;Ok, it wont cover all eventualities, but should minimize them.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 12:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361565#M85302</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-05-25T12:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Datafiles restore</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361619#M85320</link>
      <description>&lt;P&gt;If you have a system type backup, ie Windows backup you may be able to restore&amp;nbsp;previous version by using PowerShell commands that you can execute within SAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 14:22:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361619#M85320</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-25T14:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Datafiles restore</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361870#M85412</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your kind reply. Please provide codings for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 06:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361870#M85412</guid>
      <dc:creator>rajenr</dc:creator>
      <dc:date>2017-05-26T06:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Datafiles restore</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361874#M85414</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/145685"&gt;@rajenr&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your kind reply. Please provide codings for the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks..&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How you do the restore depends on the backup you have set up, so that is completely up to you. Remember that this will be a Windows task, while this forum here deals with SAS.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 06:25:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361874#M85414</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-26T06:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Datafiles restore</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361875#M85415</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to restore the dataset based on the windows backup(like previous day). Request you to provide codings for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 06:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361875#M85415</guid>
      <dc:creator>rajenr</dc:creator>
      <dc:date>2017-05-26T06:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Datafiles restore</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361876#M85416</link>
      <description>&lt;P&gt;&lt;A href="https://support.microsoft.com/en-us/help/17127/windows-back-up-restore" target="_blank"&gt;https://support.microsoft.com/en-us/help/17127/windows-back-up-restore&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 06:37:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361876#M85416</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-26T06:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Datafiles restore</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361879#M85418</link>
      <description>&lt;P&gt;Hi KurtBremser,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your advise. I would like to restore the datasets using SAS programmings. As suggested by Reeza it can be possible by using PowerShell commands in SAS. Kindly help on this..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 06:47:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361879#M85418</guid>
      <dc:creator>rajenr</dc:creator>
      <dc:date>2017-05-26T06:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Datafiles restore</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361883#M85420</link>
      <description>&lt;P&gt;Powershell is Windows programming. You need to solve that part first, before you have something that you can call from SAS with call system, X or filename pipe.&lt;/P&gt;
&lt;P&gt;So I recommend to solve the restore from a commandline, and once that works, write the corresponding system call in SAS.&lt;/P&gt;
&lt;P&gt;There is no generic SAS interface to operating system backup/restore commands (like the SAS file functions that allow you to deal with files without knowing the OS commands).&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 07:08:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361883#M85420</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-26T07:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Datafiles restore</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361890#M85425</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 07:30:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/361890#M85425</guid>
      <dc:creator>rajenr</dc:creator>
      <dc:date>2017-05-26T07:30:50Z</dc:date>
    </item>
    <item>
      <title>Opening an excel using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363069#M86048</link>
      <description>&lt;P&gt;&lt;FONT face="Courier New"&gt;Hi Friends,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;I tried with the below code for open an excel. But it does it provides any output. I could see the log window without error. Please check and help on this. Here with i have attached screenshot of log Window.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%MACRO&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Sleep(pSeconds);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;/P&gt;&lt;P&gt;vVar1=SLEEP(&amp;amp;pSeconds);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%MEND&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;/* Macro to open Excel */&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%MACRO&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Open_Xls();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;OPTIONS NOXWAIT NOXSYNC MISSING=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;''&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;X &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"C:\Program Files\Microsoft Office\Office14\excel.exe"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%&lt;STRONG&gt;&lt;I&gt;sleep&lt;/I&gt;&lt;/STRONG&gt;(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%MEND&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;Note: Excel path is correct.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 13:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363069#M86048</guid>
      <dc:creator>rajenr</dc:creator>
      <dc:date>2017-05-31T13:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Opening an excel using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363070#M86049</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have checked with the below path also. But it does not open an excel file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%MACRO&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Open_Xls();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;OPTIONS NOXWAIT NOXSYNC MISSING=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;''&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;X &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%&lt;STRONG&gt;&lt;I&gt;sleep&lt;/I&gt;&lt;/STRONG&gt;(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%MEND&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%MACRO&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Sleep(pSeconds);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;/P&gt;&lt;P&gt;vVar1=SLEEP(&amp;amp;pSeconds);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%MEND&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;/* Macro to open Excel */&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%MACRO&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Open_Xls();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;OPTIONS NOXWAIT NOXSYNC MISSING=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;''&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;X "C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%&lt;STRONG&gt;&lt;I&gt;sleep&lt;/I&gt;&lt;/STRONG&gt;(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%MEND&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 13:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363070#M86049</guid>
      <dc:creator>rajenr</dc:creator>
      <dc:date>2017-05-31T13:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Opening an excel using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363074#M86050</link>
      <description>&lt;P&gt;The problem with the X statement in SAS is that it does not deliver anything back from the commandline.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try this to capture OS responses:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe "your command 2&amp;gt;&amp;amp;1";

data _null_;
infile oscmd;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the 2&amp;gt;&amp;amp;1 reroutes error output to standard output; all responses will now end up in your SAS log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As it is, your code would just open an instance of Excel on the PC without doing anything further; is this what you intend to do?&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 13:52:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363074#M86050</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-31T13:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Opening an excel using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363090#M86051</link>
      <description>&lt;P&gt;What is it your trying to do? &amp;nbsp;Why do you need to open Excel?&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 14:21:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363090#M86051</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-05-31T14:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Opening an excel using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363298#M86052</link>
      <description>&lt;P&gt;What are you trying to do?&amp;nbsp;Opening an Excel with the code you've shown will do exactly that, open Excel which is pretty useless.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you have macro's shown but you're not actually calling them. Consider a macro similar (but not the same) as a function in another language. You've created the function but you haven't used it. You also may have an 'order of operations' issue. You define the SLEEP macro after it's used in the OPEN_XLS macro.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do note that DDE requires the XCMD option to be enabled and&amp;nbsp;usually doesn't work on server environments because they're Unix not Windows and those are Windows commands. Also, it's ancient. That doesn't mean it's not useful, just that it's ancient, finicky and I wouldn't build anything with this today.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%MACRO Sleep(pSeconds); &lt;BR /&gt;   DATA _NULL_; &lt;BR /&gt;     vVar1=SLEEP(&amp;amp;pSeconds); &lt;BR /&gt;   RUN; &lt;BR /&gt;%MEND; &lt;BR /&gt;&lt;BR /&gt;%MACRO Open_Xls();
   OPTIONS NOXWAIT NOXSYNC MISSING='';
    X "C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE";
    %sleep(2);
%MEND;&lt;BR /&gt;

%open_xls;&lt;/CODE&gt;&lt;/PRE&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, 01 Jun 2017 03:19:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363298#M86052</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-01T03:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Opening an excel using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363389#M86053</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually my concern is need to restore datasets using sas program. I tried for for t he same. As suggested by you and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;, i tried to restore the datasets using commands in command prompt. But i didn't get the commands for the same. While searching&amp;nbsp;regarding this i could see&amp;nbsp;some&amp;nbsp;VB codings for restore the&amp;nbsp;SQL database files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i planned to use those commands in Excel. But while&amp;nbsp;running the&amp;nbsp;SAS program the excel macro also need to run.&amp;nbsp;&amp;nbsp;If i can open the excel file then i will able to run the macro easily. So only i tried to open the file using the given commands. But i couldn't. Here i have some&amp;nbsp;concerns, same are listed below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Need to restore the datasets using SAS program.&lt;/P&gt;&lt;P&gt;2. If it is possible ways to do that and coding for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help on this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 12:24:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363389#M86053</guid>
      <dc:creator>rajenr</dc:creator>
      <dc:date>2017-06-01T12:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Opening an excel using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363394#M86054</link>
      <description>&lt;P&gt;You seem to be going round in circles. &amp;nbsp;Start by defining - where did the data come from originally? &amp;nbsp;If you have the source files then re-import the data, if you don't have the source data, and you have removed the files, then you need ot go back to your IT and see if they have an automatic back up. &amp;nbsp;It hard to say as we have no information on your process other than your trying to restore something. &amp;nbsp;You need to provide all the infomation around the problem so we can know as well.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 12:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363394#M86054</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-01T12:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Opening an excel using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363395#M86055</link>
      <description>&lt;P&gt;As already stated, you absolutely need to solve the "restore from commandline" issue first. If you can't do it from there, you can't do it, period. Involving another silly mechanism like Excel just to run a VB script borders on the insane.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to run VB scripts from the commandline:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://technet.microsoft.com/en-us/library/ee156587.aspx" target="_blank"&gt;https://technet.microsoft.com/en-us/library/ee156587.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(BTW, this is the first result of a google search for "run vb script from the commandline".&lt;/P&gt;
&lt;P&gt;The same search also reveals lots of usable hints for the task)&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 12:49:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regarding-Datafiles-restore/m-p/363395#M86055</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-01T12:49:36Z</dc:date>
    </item>
  </channel>
</rss>

