<?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 how to use %include to include my program in SAS STUDIO in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-to-use-include-to-include-my-program-in-SAS-STUDIO/m-p/937078#M42125</link>
    <description>&lt;P&gt;my question is about %include code, which is used in &lt;EM&gt;&lt;STRONG&gt;primary.sas&lt;/STRONG&gt;&lt;/EM&gt; to include my &lt;EM&gt;&lt;STRONG&gt;setup.sas&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;, my goal is to set up a sas library named RAW. my code been as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;&lt;STRONG&gt; *-----------first sentence in my primary.sas;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;%include "/home/u63676684/template/myproject/Report/Macro/setup.sas";&lt;/PRE&gt;&lt;PRE&gt;&lt;STRONG&gt;*------------&lt;EM&gt;my&lt;/EM&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;setup.sas;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;dm "log; clear;";
dm "out; clear;";
options missing = '' ;
libname _all_ clear ;                                                  
%let server=/home/u63676684/template;
%let project=myproject;
libname raw "&amp;amp;Server/&amp;amp;Project/data/rawdata";&lt;/PRE&gt;&lt;P&gt;1. when I run my setup.sas alone, RAW can be successfully set up as a sas library.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. when I run my primary.sas to try to include my setup.sas, RAW cannot be created, without any ERROR or WARNING in my log, only with a NOTE:&lt;SPAN&gt;&amp;nbsp;library “RAW” doesn't exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have already checked all the pathname. They are set correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are there any points I should pay attention to? I'd appreciate it if you could point it out!🥹&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;my sas is set up in sas studio, macos&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2024 07:35:46 GMT</pubDate>
    <dc:creator>morenayan</dc:creator>
    <dc:date>2024-07-25T07:35:46Z</dc:date>
    <item>
      <title>how to use %include to include my program in SAS STUDIO</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-use-include-to-include-my-program-in-SAS-STUDIO/m-p/937078#M42125</link>
      <description>&lt;P&gt;my question is about %include code, which is used in &lt;EM&gt;&lt;STRONG&gt;primary.sas&lt;/STRONG&gt;&lt;/EM&gt; to include my &lt;EM&gt;&lt;STRONG&gt;setup.sas&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;, my goal is to set up a sas library named RAW. my code been as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;&lt;STRONG&gt; *-----------first sentence in my primary.sas;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;%include "/home/u63676684/template/myproject/Report/Macro/setup.sas";&lt;/PRE&gt;&lt;PRE&gt;&lt;STRONG&gt;*------------&lt;EM&gt;my&lt;/EM&gt;&lt;/STRONG&gt; &lt;EM&gt;&lt;STRONG&gt;setup.sas;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;dm "log; clear;";
dm "out; clear;";
options missing = '' ;
libname _all_ clear ;                                                  
%let server=/home/u63676684/template;
%let project=myproject;
libname raw "&amp;amp;Server/&amp;amp;Project/data/rawdata";&lt;/PRE&gt;&lt;P&gt;1. when I run my setup.sas alone, RAW can be successfully set up as a sas library.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. when I run my primary.sas to try to include my setup.sas, RAW cannot be created, without any ERROR or WARNING in my log, only with a NOTE:&lt;SPAN&gt;&amp;nbsp;library “RAW” doesn't exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have already checked all the pathname. They are set correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are there any points I should pay attention to? I'd appreciate it if you could point it out!🥹&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;my sas is set up in sas studio, macos&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 07:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-use-include-to-include-my-program-in-SAS-STUDIO/m-p/937078#M42125</guid>
      <dc:creator>morenayan</dc:creator>
      <dc:date>2024-07-25T07:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to use %include to include my program in SAS STUDIO</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-use-include-to-include-my-program-in-SAS-STUDIO/m-p/937080#M42127</link>
      <description>&lt;P&gt;Submit this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*-----------first sentence in my primary.sas;
options mprint mlogic symbolgen;
%include "/home/u63676684/template/myproject/Report/Macro/setup.sas" / source2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;... and the LOG will tell you more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 08:08:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-use-include-to-include-my-program-in-SAS-STUDIO/m-p/937080#M42127</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-07-25T08:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to use %include to include my program in SAS STUDIO</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-use-include-to-include-my-program-in-SAS-STUDIO/m-p/937090#M42129</link>
      <description>&lt;P&gt;thanks a lot,&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;as you say, the log tell me more: it seems like my macro project name is parsed as messy code&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;my setup.sas is coded as GB2312, my primary.sas is coded as UTF-8&lt;/P&gt;&lt;P class=""&gt;so I change my code into&lt;/P&gt;&lt;PRE&gt;filename setup "/home/u63676684/template/myproject/Report/Macro/setup.sas" &lt;BR /&gt;encoding='GB2312';
%include setup;&lt;/PRE&gt;&lt;P class=""&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 09:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-use-include-to-include-my-program-in-SAS-STUDIO/m-p/937090#M42129</guid>
      <dc:creator>morenayan</dc:creator>
      <dc:date>2024-07-25T09:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to use %include to include my program in SAS STUDIO</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-use-include-to-include-my-program-in-SAS-STUDIO/m-p/937104#M42130</link>
      <description>&lt;P&gt;Also use the SOURCE2 option so that the lines of code from the include file will appear in the SAS log.&amp;nbsp; You can change it just for this particular include by adding it as an option on the %INCLUDE statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include setup / source2 ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jul 2024 12:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-use-include-to-include-my-program-in-SAS-STUDIO/m-p/937104#M42130</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-07-25T12:45:49Z</dc:date>
    </item>
  </channel>
</rss>

