<?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: command to open a sas code file? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593707#M170438</link>
    <description>&lt;P&gt;I would like to have a code to open my other SAS code files in SAS window. Then I can look at my code files (interactively) and amend them if needed. Without this, how I do is to open several files manually whenever I turn on my PC and SAS.&amp;nbsp;Hope that it's clearer.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2019 13:24:55 GMT</pubDate>
    <dc:creator>braam</dc:creator>
    <dc:date>2019-10-03T13:24:55Z</dc:date>
    <item>
      <title>command to open a sas code file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593686#M170422</link>
      <description>&lt;P&gt;Is there a way to open my existing sas code files by executing a line of sas code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I mean, I would like to open three sas code files, let's say code1.sas, code2.sas, and code3.sas. Can I let my sas to open all of them? I know I can open them by dragging to sas or using menu. But I would like to do so via code. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 12:32:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593686#M170422</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-03T12:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: command to open a sas code file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593692#M170427</link>
      <description>&lt;P&gt;Use %include.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "path-to-program\code1.sas";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 12:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593692#M170427</guid>
      <dc:creator>maguiremq</dc:creator>
      <dc:date>2019-10-03T12:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: command to open a sas code file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593699#M170430</link>
      <description>&lt;P&gt;Open to do what? Open with what?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593699#M170430</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-03T13:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: command to open a sas code file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593702#M170433</link>
      <description>&lt;P&gt;Only when you're working with Display Manager:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dm prog "include test.sas";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593702#M170433</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-03T13:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: command to open a sas code file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593706#M170437</link>
      <description>&lt;P&gt;Thanks for your comment. I know %include statement, but doesn't it run my code indicated by %include statement, rather than opening it in SAS window? Sorry for not making my question clearer, but I would like to have a code to open my other SAS codes in SAS window so that I can amend them if needed.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593706#M170437</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-03T13:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: command to open a sas code file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593707#M170438</link>
      <description>&lt;P&gt;I would like to have a code to open my other SAS code files in SAS window. Then I can look at my code files (interactively) and amend them if needed. Without this, how I do is to open several files manually whenever I turn on my PC and SAS.&amp;nbsp;Hope that it's clearer.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593707#M170438</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-03T13:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: command to open a sas code file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593708#M170439</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/279507"&gt;@braam&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for your comment. I know %include statement, but doesn't it run my code indicated by %include statement, rather than opening it in SAS window? Sorry for not making my question clearer, but I would like to have a code to open my other SAS codes in SAS window so that I can amend them if needed.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Assuming you are running SAS using the Display Manager interface then you want to execute the INCLUDE command line statement instead of the %INCLUDE macro statement. You can use the DM command to run Display Manager commands from code.&amp;nbsp; There are other commands for moving focus to the appropriate window, it doesn't work try to INCLUDE a file into the LOG or OUTPUT window.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593708#M170439</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-03T13:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: command to open a sas code file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593709#M170440</link>
      <description>&lt;P&gt;This is NOT the %include macro statement. It is a command for the Display Manager to load the named file into the program editor.&lt;/P&gt;
&lt;P&gt;The necessary commands may look different when using Windows Base SAS, as you can open several Enhanced Editor windows there IIRC.&lt;/P&gt;
&lt;P&gt;The command I gave you was tested with Base SAS on AIX.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593709#M170440</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-03T13:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: command to open a sas code file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593755#M170467</link>
      <description>&lt;P&gt;Thank you so much for your help. Your code worked for me when "wpgm" is used in dm!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 14:55:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593755#M170467</guid>
      <dc:creator>braam</dc:creator>
      <dc:date>2019-10-03T14:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: command to open a sas code file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593758#M170470</link>
      <description>&lt;P&gt;Seems like a strange request.&amp;nbsp; How do you know what programs you want to open for this SAS session?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can open many "enhanced" editor windows in PC SAS.&amp;nbsp; You can only have one regular PGM window (on any operating system).&lt;/P&gt;
&lt;P&gt;You can also open many NOTEPAD windows, which work a lot like editor windows, but you need to link some SAS catalog source object type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a good thread about how to find a list of SAS Display Manager commands.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/1233056/sas-display-manager-commands" target="_blank"&gt;https://stackoverflow.com/questions/1233056/sas-display-manager-commands&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 14:57:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/command-to-open-a-sas-code-file/m-p/593758#M170470</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-03T14:57:35Z</dc:date>
    </item>
  </channel>
</rss>

