<?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: Code Behaves Differently with %INCLUDE? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Code-Behaves-Differently-with-INCLUDE/m-p/628289#M185628</link>
    <description>&lt;P&gt;Thanks for this help. Just to make sure, may I ask slightly more? The standalone code runs as I intend even without EXPANDTABS, while %INCLUDE requires EXPANDTABS to do so—which I didn't anticipate beforehand.&lt;/P&gt;&lt;P&gt;(1) Why do they—standalone versus %INCLUDE—behave differently here? Shouldn't their results be identical?&lt;/P&gt;&lt;P&gt;(2) If not, is there any similar %INCLUDE-specific difference? Because I didn't expect their difference so far, I didn't seriously consider these issues (such as tabbing or spacing) as well when coding. Probably I would have to review again to avoid unwanted errors.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 18:15:51 GMT</pubDate>
    <dc:creator>Junyong</dc:creator>
    <dc:date>2020-02-28T18:15:51Z</dc:date>
    <item>
      <title>Code Behaves Differently with %INCLUDE?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-Behaves-Differently-with-INCLUDE/m-p/628279#M185623</link>
      <description>&lt;P&gt;My SAS code "a.sas" is in Desktop.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input code :$5. country $13.;
cards;
USA	United States
;

proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This code standalone prints the following.&lt;/P&gt;&lt;PRE&gt;                  Obs    code       country

                   1     USA     United States&lt;/PRE&gt;&lt;P&gt;Another SAS code "b.sas" %INCLUDEs the "a.sas" code as follows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "!userprofile\desktop\a.sas";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And the results are inconsistent.&lt;/P&gt;&lt;PRE&gt;                    Obs    code     country

                     1     USA	U    States&lt;/PRE&gt;&lt;P&gt;It seems this difference is related to the tab in between "USA" and "United States" but unclear. I read Rule for Using %INCLUDE in &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p1s3uhhqtscz2sn1otiatbovfn1t.htm" target="_blank" rel="noopener"&gt;%INCLUDE Statement&lt;/A&gt; but I couldn't find the relevant—spacing versus tabbing—issues. What's the reason for this difference?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 17:34:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-Behaves-Differently-with-INCLUDE/m-p/628279#M185623</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-02-28T17:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Code Behaves Differently with %INCLUDE?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-Behaves-Differently-with-INCLUDE/m-p/628284#M185626</link>
      <description>&lt;P&gt;SAS DIsplay Manager tries to help you out by fixing your mistake of embedding tabs in your data when it submits the code to run.&lt;/P&gt;
&lt;P&gt;You can use the EXPANDTABS option on an infile statement to fix it yourself.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  infile cards expandtabs;
  input code :$5. country $13.;
cards;
USA	United States
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or better still just stop putting tab characters into your program files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 17:53:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-Behaves-Differently-with-INCLUDE/m-p/628284#M185626</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-28T17:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Code Behaves Differently with %INCLUDE?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Code-Behaves-Differently-with-INCLUDE/m-p/628289#M185628</link>
      <description>&lt;P&gt;Thanks for this help. Just to make sure, may I ask slightly more? The standalone code runs as I intend even without EXPANDTABS, while %INCLUDE requires EXPANDTABS to do so—which I didn't anticipate beforehand.&lt;/P&gt;&lt;P&gt;(1) Why do they—standalone versus %INCLUDE—behave differently here? Shouldn't their results be identical?&lt;/P&gt;&lt;P&gt;(2) If not, is there any similar %INCLUDE-specific difference? Because I didn't expect their difference so far, I didn't seriously consider these issues (such as tabbing or spacing) as well when coding. Probably I would have to review again to avoid unwanted errors.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 18:15:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Code-Behaves-Differently-with-INCLUDE/m-p/628289#M185628</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-02-28T18:15:51Z</dc:date>
    </item>
  </channel>
</rss>

