<?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: Get SAS to avoid jumping to the results viewer when i run some code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262381#M51206</link>
    <description>&lt;P&gt;Does the Results window support the AUTOPOP command like the LOG and OUTPUT windows?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2016 11:26:34 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2016-04-08T11:26:34Z</dc:date>
    <item>
      <title>Get SAS to avoid jumping to the results viewer when i run some code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262344#M51187</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I get SAS to not jump to the results viewer when i run some code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have my SAS set up in two screens, with the editor, results viewer and the log all visible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My workflow is that I write some code, run it, and check the result in the log and the results viewer. Then I edit the code and repeat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I run some code, the results viewer becomes the active window, so then I need to navigate back to the editor (which breaks my trains of thought, and takes unnecessarily long time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So any ideas on this?&lt;/P&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>Fri, 08 Apr 2016 09:27:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262344#M51187</guid>
      <dc:creator>rasmuslarsen</dc:creator>
      <dc:date>2016-04-08T09:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get SAS to avoid jumping to the results viewer when i run some code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262349#M51192</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try:&lt;/P&gt;
&lt;P&gt;ods noresults;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 09:42:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262349#M51192</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-08T09:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get SAS to avoid jumping to the results viewer when i run some code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262367#M51201</link>
      <description>&lt;P&gt;Thank you but the effect of this is that the results are not updated. What I am looking for is avoiding that the results viewer becomes the active window, when running some code (but that the results are still updated).&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 10:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262367#M51201</guid>
      <dc:creator>rasmuslarsen</dc:creator>
      <dc:date>2016-04-08T10:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get SAS to avoid jumping to the results viewer when i run some code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262373#M51203</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/56750"&gt;@rasmuslarsen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was also wondering how you're going to "&lt;SPAN&gt;check the result in the log &lt;EM&gt;and the results viewer&lt;/EM&gt;" after suppressing the (ODS) output via ODS NORESULTS. Also, doesn't the focus now switch to the output window rather than the results viewer?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here's a different approach, assuming that you use a function key (such as F8) to submit your code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Open the KEYS window (by pressing F9 or entering "keys" into the command line).&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Add the WPGM command to the key you use for submitting code (see screenshot below).&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Close the KEYS window.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;This should make the Enhanced Editor the active window after submitting code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="keys_window.png" style="width: 290px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29125iD5F93ED23804B3CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="keys_window.png" alt="keys_window.png" /&gt;&lt;/span&gt;&lt;/P&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;
&lt;P&gt;&amp;nbsp;&lt;/P&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the KEYS setting is lost after closing the SAS session or you encounter error messages like&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;ERROR: File I/O Error.  Unable to permanently save KEYS settings.
ERROR: Cannot open entry DMKEYS.KEYS for write access - catalog SASUSER.PROFILE is opened for read access.&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;open SAS (once) with the &lt;A href="http://support.sas.com/documentation/cdl/en/syntaxidx/68719/HTML/default/index.htm#/documentation/cdl//en/lesysoptsref/68023/HTML/default/n0yehy4wog1ti3n1u3nnqf794fhk.htm" target="_blank" rel="noopener"&gt;NORSASUSER option&lt;/A&gt; in effect to make the change to the&amp;nbsp;KEYS setting.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Edit 2019-04-30: Reattached screenshot, which had been deleted by mistake.]&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 14:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262373#M51203</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-04-30T14:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get SAS to avoid jumping to the results viewer when i run some code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262376#M51204</link>
      <description>&lt;P&gt;I assume you are using the SAS windowing environment on windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you go to Tools -&amp;gt; Options -&amp;gt; Preferences&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2671iA631F21FF24386CB/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Capture.PNG" title="Capture.PNG" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can set certain options like above. Setting it this way the Results window ist not opened and you stay in your editor. When you switch to the results window, press F5 so the it is refreshed, and you will get t see the latest outputs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 11:01:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262376#M51204</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-04-08T11:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get SAS to avoid jumping to the results viewer when i run some code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262381#M51206</link>
      <description>&lt;P&gt;Does the Results window support the AUTOPOP command like the LOG and OUTPUT windows?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 11:26:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262381#M51206</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-04-08T11:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get SAS to avoid jumping to the results viewer when i run some code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262463#M51243</link>
      <description>&lt;P&gt;What environment are you running, Base SAS, EG, Studio? And which version?&lt;/P&gt;
&lt;P&gt;And how do you submit you code to run?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Base SAS 9.2 using a function key assigned from the KEYS window that is just Submit the focus stays in&amp;nbsp;(or at least returns to ) the editor.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 14:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262463#M51243</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-08T14:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get SAS to avoid jumping to the results viewer when i run some code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262841#M51398</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks. Strangely this does not work on my machine. The focus remains on the results-viewer after I've submitted some code,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;despite the suggested addition to F3 and F8 ( tried both, none of them worked ).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For checking purposes this is what my keys look like:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2681i045A003D9F1E0609/image-size/medium?v=mpbl-1&amp;amp;px=-1" border="0" alt="Udklip.PNG" title="Udklip.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However from your answer I've learned that I can use F5 to focus back on the editor. So I will settle for that workaround for now.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 08:59:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262841#M51398</guid>
      <dc:creator>rasmuslarsen</dc:creator>
      <dc:date>2016-04-11T08:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get SAS to avoid jumping to the results viewer when i run some code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262843#M51399</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks. But on my machine F5 does focus on the results viewer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These are my keys, maybe something is wrong in them:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2682i1471A3B2E5BE9430/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Udklip.PNG" title="Udklip.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 09:03:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262843#M51399</guid>
      <dc:creator>rasmuslarsen</dc:creator>
      <dc:date>2016-04-11T09:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get SAS to avoid jumping to the results viewer when i run some code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262850#M51402</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/56750"&gt;@rasmuslarsen&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks. Strangely this does not work on my machine. The focus remains on the results-viewer after I've submitted some code,&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's interesting. I've just replicated your issue: On my computer it seems that it works only if the checkbox "Create listing" in the Results tab of Tools --&amp;gt; Options --&amp;gt; Preferences... is ticked (in addition to "Create HTML", i.e., listing output is produced in parallel). In this case the title bar of the results viewer shows the path to the HTM file produced. When I uncheck that checkbox, the title bar says "Results Viewer - SAS Output" and the focus remains on that window even after pressing F5 (which then seems to refresh the results viewer window). In both cases the settings in section "Results options" (still on the Results tab) were "View results using: Internal Browser" and both checkboxes ticked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Normally I use only listing output.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 09:45:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-SAS-to-avoid-jumping-to-the-results-viewer-when-i-run-some/m-p/262850#M51402</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-11T09:45:27Z</dc:date>
    </item>
  </channel>
</rss>

