<?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 Want to Include external SAS Statements into the sas code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Want-to-Include-external-SAS-Statements-into-the-sas-code/m-p/262218#M51141</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to include the sas statements stored in an external file (.sas) into another sas code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when i submit following code on server, it gives error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RSUBMIT;&lt;BR /&gt;/*%let MyProgramFolder = \serverlocation\SAS_UTILITY_FOLDER_NEW;*/&lt;BR /&gt;%include "./ED_MACRO_for_fillr_v1.sas"&amp;nbsp; / lrecl=500;&lt;BR /&gt;ENDRSUBMIT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR:&lt;/P&gt;
&lt;P&gt;ERROR: Invalid or unspecified remote session ID. Set OPTIONS REMOTE=session_id.&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;</description>
    <pubDate>Thu, 07 Apr 2016 22:10:33 GMT</pubDate>
    <dc:creator>dkanand86</dc:creator>
    <dc:date>2016-04-07T22:10:33Z</dc:date>
    <item>
      <title>Want to Include external SAS Statements into the sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Want-to-Include-external-SAS-Statements-into-the-sas-code/m-p/262218#M51141</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to include the sas statements stored in an external file (.sas) into another sas code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when i submit following code on server, it gives error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RSUBMIT;&lt;BR /&gt;/*%let MyProgramFolder = \serverlocation\SAS_UTILITY_FOLDER_NEW;*/&lt;BR /&gt;%include "./ED_MACRO_for_fillr_v1.sas"&amp;nbsp; / lrecl=500;&lt;BR /&gt;ENDRSUBMIT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR:&lt;/P&gt;
&lt;P&gt;ERROR: Invalid or unspecified remote session ID. Set OPTIONS REMOTE=session_id.&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;</description>
      <pubDate>Thu, 07 Apr 2016 22:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Want-to-Include-external-SAS-Statements-into-the-sas-code/m-p/262218#M51141</guid>
      <dc:creator>dkanand86</dc:creator>
      <dc:date>2016-04-07T22:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Want to Include external SAS Statements into the sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Want-to-Include-external-SAS-Statements-into-the-sas-code/m-p/262222#M51143</link>
      <description>&lt;P&gt;You may be missing something in you %include file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try adding&lt;/P&gt;
&lt;P&gt;options source2;&lt;/P&gt;
&lt;P&gt;before the RSUBMIT to show the contents of the %include in the log and post the log. Post the results of the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also between your comment and the %include there might confusion as the system you are running. The comment looks like Windows and the %include file looks like Unix or similar file system.&lt;/P&gt;
&lt;P&gt;Generally it is a good idea to use a fully qualified path to the file as well.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 22:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Want-to-Include-external-SAS-Statements-into-the-sas-code/m-p/262222#M51143</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-07T22:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Want to Include external SAS Statements into the sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Want-to-Include-external-SAS-Statements-into-the-sas-code/m-p/262224#M51146</link>
      <description>&lt;P&gt;If your running on the server, the server needs to have access to the file path, ie usually not your local C drive.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 22:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Want-to-Include-external-SAS-Statements-into-the-sas-code/m-p/262224#M51146</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-07T22:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Want to Include external SAS Statements into the sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Want-to-Include-external-SAS-Statements-into-the-sas-code/m-p/262303#M51173</link>
      <description>&lt;P&gt;RSUBMIT is a statement of the SAS/CONNECT package.&lt;/P&gt;
&lt;P&gt;To use it, you must have a CONNECT session to a host active; a session is initiated with the SIGNON statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Documentation for SAS/CONNECT is found here: &lt;A href="http://support.sas.com/documentation/cdl/en/connref/67933/HTML/default/viewer.htm#titlepage.htm" target="_self"&gt;SAS/CONNECT 9.4 User's Guide&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 06:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Want-to-Include-external-SAS-Statements-into-the-sas-code/m-p/262303#M51173</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-08T06:24:53Z</dc:date>
    </item>
  </channel>
</rss>

