<?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: Juletip #6 – Run current datastep or proc with a single keystroke in SAS Community Nordic</title>
    <link>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-8-Run-current-datastep-or-proc-with-a-single-keystroke/m-p/907318#M447</link>
    <description>&lt;P&gt;In DMS at least, this will include any block of comments before the collapsed section. And leave them collapsed in the editor.&lt;/P&gt;
&lt;P&gt;Not a deal breaker but is occasionally annoying as I figured this out in SAS 8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cntrl-Alt - (minus on the numeric keypad) will collapse all code in the editor in DMS so is handy for submitting two or more blocks (data step or procedures) easily.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2023 12:40:16 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-12-11T12:40:16Z</dc:date>
    <item>
      <title>Juletip #8 – Run current datastep or proc with a single keystroke</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-8-Run-current-datastep-or-proc-with-a-single-keystroke/m-p/906913#M442</link>
      <description>&lt;P&gt;If your datastep code or Proc SQL (or any Proc) is more than a page, perhaps several pages, it’s pretty tedious to select all code before you can submit. I have an SQL that is 4 pages long myself... There is a nice solution to this in SAS Studio on Viya 4 as well as in SAS Enterprise Guide and DMS (Base SAS).&lt;/P&gt;
&lt;P&gt;In &lt;STRONG&gt;SAS Studio&lt;/STRONG&gt; you right mouse anywhere in your datastep/proc and select &lt;STRONG&gt;Run Region&lt;/STRONG&gt;, and that “region” is submitted. It has the shortcut key Shift+F8 by default, and you can change this in &lt;STRONG&gt;Options &amp;gt; Manage Keyboard Shortcuts&lt;/STRONG&gt;. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Run region - Viya4.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90972i920F4F8952087830/image-size/large?v=v2&amp;amp;px=999" role="button" title="Run region - Viya4.png" alt="Run region - Viya4.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In &lt;STRONG&gt;SAS Enterprise Guide&lt;/STRONG&gt;&amp;nbsp;and &lt;STRONG&gt;DMS&lt;/STRONG&gt; you have to create a “Keyboard macro”. You can export this Keyboard Macro as a .kmf file and give to others so it's easy to share, and I'll share mine right now. You can get this kmf file below in the ZIP SelectCurrentCode. Unzip and click (Import...] in&amp;nbsp;&lt;STRONG&gt;Program &amp;gt; Manage macros and snippets&lt;/STRONG&gt;&amp;nbsp;and after importing you assign it to e.g. F8. So having assigned SelectCurrentCode to F8 you would do F8 and then F3 to select the current datastep/proc and run it. How nice is this!? The title says "a single keystroke" but it's actually two, but still...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The KMF file works for DMS as well. Images below just show EG though.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EG Edit Keyboard Macro.png" style="width: 522px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90973i8B3C277CB0EDE602/image-size/large?v=v2&amp;amp;px=999" role="button" title="EG Edit Keyboard Macro.png" alt="EG Edit Keyboard Macro.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Run region - EG - F8.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90974i4E04B688A5E4EA45/image-size/large?v=v2&amp;amp;px=999" role="button" title="Run region - EG - F8.png" alt="Run region - EG - F8.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 13:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-8-Run-current-datastep-or-proc-with-a-single-keystroke/m-p/906913#M442</guid>
      <dc:creator>DanielRingqvist</dc:creator>
      <dc:date>2024-01-04T13:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Juletip #6 – Run current datastep or proc with a single keystroke</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-8-Run-current-datastep-or-proc-with-a-single-keystroke/m-p/907197#M444</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/26870"&gt;@DanielRingqvist&lt;/a&gt;&amp;nbsp;, very nice!&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 19:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-8-Run-current-datastep-or-proc-with-a-single-keystroke/m-p/907197#M444</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2023-12-10T19:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Juletip #6 – Run current datastep or proc with a single keystroke</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-8-Run-current-datastep-or-proc-with-a-single-keystroke/m-p/907245#M446</link>
      <description>It's a life saver &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Mon, 11 Dec 2023 08:26:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-8-Run-current-datastep-or-proc-with-a-single-keystroke/m-p/907245#M446</guid>
      <dc:creator>DanielRingqvist</dc:creator>
      <dc:date>2023-12-11T08:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Juletip #6 – Run current datastep or proc with a single keystroke</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-8-Run-current-datastep-or-proc-with-a-single-keystroke/m-p/907318#M447</link>
      <description>&lt;P&gt;In DMS at least, this will include any block of comments before the collapsed section. And leave them collapsed in the editor.&lt;/P&gt;
&lt;P&gt;Not a deal breaker but is occasionally annoying as I figured this out in SAS 8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cntrl-Alt - (minus on the numeric keypad) will collapse all code in the editor in DMS so is handy for submitting two or more blocks (data step or procedures) easily.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 12:40:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-8-Run-current-datastep-or-proc-with-a-single-keystroke/m-p/907318#M447</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-12-11T12:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Juletip #6 – Run current datastep or proc with a single keystroke</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-8-Run-current-datastep-or-proc-with-a-single-keystroke/m-p/907512#M449</link>
      <description>Yes, comments will be selected lines as well. Does not bother me much though &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Tue, 12 Dec 2023 12:17:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-8-Run-current-datastep-or-proc-with-a-single-keystroke/m-p/907512#M449</guid>
      <dc:creator>DanielRingqvist</dc:creator>
      <dc:date>2023-12-12T12:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Juletip #8 – Run current datastep or proc with a single keystroke</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-8-Run-current-datastep-or-proc-with-a-single-keystroke/m-p/929463#M466</link>
      <description>&lt;P&gt;¡¡¡WOW!!! Thanks a lot.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":sign_of_the_horns:"&gt;🤘&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 18:45:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-8-Run-current-datastep-or-proc-with-a-single-keystroke/m-p/929463#M466</guid>
      <dc:creator>Fabian_Rodrigue</dc:creator>
      <dc:date>2024-05-23T18:45:47Z</dc:date>
    </item>
  </channel>
</rss>

