<?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: Importing DATA(code) from SAS Log file to Program Editor window in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-DATA-code-from-SAS-Log-file-to-Program-Editor-window/m-p/323702#M21627</link>
    <description>&lt;P&gt;Hi Rajiv436,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I won't add any new solution&amp;nbsp;but you mentioned EG and the fact that the "code automaticall erased".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The behavior you report is the one available with the Program Editor.&lt;/P&gt;
&lt;P&gt;Since SAS8.2, you have access to the Enhanced Editor and the code remains.&lt;/P&gt;
&lt;P&gt;From the VIEW menu, you should have the choice between using the Enhanced editor and the Program Editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Said that, if you want to use the Program Editor with SAS, you can usually press the F4 key to recall the code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is EG "SAS Enterprise Guide"?&lt;/P&gt;
&lt;P&gt;EG &lt;EM&gt;only&lt;/EM&gt; has the Enhanced Editor, I think.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Damo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2017 16:30:21 GMT</pubDate>
    <dc:creator>Damo</dc:creator>
    <dc:date>2017-01-10T16:30:21Z</dc:date>
    <item>
      <title>Importing DATA(code) from SAS Log file to Program Editor window</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-DATA-code-from-SAS-Log-file-to-Program-Editor-window/m-p/323584#M21621</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;In my SAS EG Program Editor window code automatically erased withou any human action, But in log window my code is available and in the Results Window output is displaying. Please let me know how can I import log into the Program Editor window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Rajiv Santosh.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 11:50:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-DATA-code-from-SAS-Log-file-to-Program-Editor-window/m-p/323584#M21621</guid>
      <dc:creator>rajiv436</dc:creator>
      <dc:date>2017-01-10T11:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Importing DATA(code) from SAS Log file to Program Editor window</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-DATA-code-from-SAS-Log-file-to-Program-Editor-window/m-p/323588#M21622</link>
      <description>&lt;P&gt;Select (mouse) the desired lines and copy/paste to the program editor. Use the Alt key while mouse-selecting only the columns with the line numbers, and delete them. Then you have to remove the NOTEs and page headers manually.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 11:54:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-DATA-code-from-SAS-Log-file-to-Program-Editor-window/m-p/323588#M21622</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-10T11:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Importing DATA(code) from SAS Log file to Program Editor window</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-DATA-code-from-SAS-Log-file-to-Program-Editor-window/m-p/323611#M21623</link>
      <description>&lt;P&gt;If you have 'full' SAS not UE, EE, EG or SAS Studio and the old text editor you can use this SAS code below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This macro will copy the log to the program editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro getlog/cmd;&lt;BR /&gt;home;log;find ' ';mark;bot;mark;store;home;pgm;1;paste;&lt;BR /&gt;%mend getlog;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hit a function key, mouse action or type getlog on any 'clean' command line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can put the script on a function key, mouse action, without the macro wrapper, or put the macro&lt;/P&gt;&lt;P&gt;in your autocall folder. You never need to migate this code when you install a new version of SAS and&lt;/P&gt;&lt;P&gt;it has worked since the late 70s, so you .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the issue is that SAS disabled the store command in all editors except the 'old' text editor.&lt;/P&gt;&lt;P&gt;I beleve it used to work in the EE editor but was later disabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of SAS can be executed from the 'old' text editor command line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even execute Python scripts from the command line.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 13:41:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-DATA-code-from-SAS-Log-file-to-Program-Editor-window/m-p/323611#M21623</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2017-01-10T13:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Importing DATA(code) from SAS Log file to Program Editor window</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-DATA-code-from-SAS-Log-file-to-Program-Editor-window/m-p/323702#M21627</link>
      <description>&lt;P&gt;Hi Rajiv436,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I won't add any new solution&amp;nbsp;but you mentioned EG and the fact that the "code automaticall erased".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The behavior you report is the one available with the Program Editor.&lt;/P&gt;
&lt;P&gt;Since SAS8.2, you have access to the Enhanced Editor and the code remains.&lt;/P&gt;
&lt;P&gt;From the VIEW menu, you should have the choice between using the Enhanced editor and the Program Editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Said that, if you want to use the Program Editor with SAS, you can usually press the F4 key to recall the code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is EG "SAS Enterprise Guide"?&lt;/P&gt;
&lt;P&gt;EG &lt;EM&gt;only&lt;/EM&gt; has the Enhanced Editor, I think.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Damo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 16:30:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Importing-DATA-code-from-SAS-Log-file-to-Program-Editor-window/m-p/323702#M21627</guid>
      <dc:creator>Damo</dc:creator>
      <dc:date>2017-01-10T16:30:21Z</dc:date>
    </item>
  </channel>
</rss>

