<?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: SQLLDR followed by %if (1) %then %let sqlldr_rc=&amp;sysrc; in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQLLDR-followed-by-if-1-then-let-sqlldr-rc-sysrc/m-p/46074#M9522</link>
    <description>In conditional logic, 1 means TRUE. So your %if will always be true, and the assignment of sqlldr_rc will always happen.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
    <pubDate>Mon, 15 Sep 2008 13:45:35 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2008-09-15T13:45:35Z</dc:date>
    <item>
      <title>SQLLDR followed by %if (1) %then %let sqlldr_rc=&amp;sysrc;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQLLDR-followed-by-if-1-then-let-sqlldr-rc-sysrc/m-p/46071#M9519</link>
      <description>Does anybody know exactly how the %if (1) %then %let sqlldr_rc=&amp;amp;sysrc line works?&lt;BR /&gt;
&lt;BR /&gt;
I'm not familiar with  %if (1)</description>
      <pubDate>Mon, 15 Sep 2008 13:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQLLDR-followed-by-if-1-then-let-sqlldr-rc-sysrc/m-p/46071#M9519</guid>
      <dc:creator>JMarkW</dc:creator>
      <dc:date>2008-09-15T13:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: SQLLDR followed by %if (1) %then %let sqlldr_rc=&amp;sysrc;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQLLDR-followed-by-if-1-then-let-sqlldr-rc-sysrc/m-p/46072#M9520</link>
      <description>Expression in %if can be any valid macro expression that resolves to an integer. If expression is evaluated to zero, then it is false and the %then text is not processed. If it resoles to any integer other than zero, then the expression is true, and the %then text is processed. If it resolves to null or to any noninteger value, an error message is issued.</description>
      <pubDate>Mon, 15 Sep 2008 13:44:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQLLDR-followed-by-if-1-then-let-sqlldr-rc-sysrc/m-p/46072#M9520</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-15T13:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: SQLLDR followed by %if (1) %then %let sqlldr_rc=&amp;sysrc;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQLLDR-followed-by-if-1-then-let-sqlldr-rc-sysrc/m-p/46073#M9521</link>
      <description>The SAS macro code is using a technique to force a TRUE condition test result.  A value of 1 is TRUE and a value of 0 is false.  You can see this processing decision during SAS code compilation if you turn on:&lt;BR /&gt;
&lt;BR /&gt;
options source source2 macrogen symbolgen mlogic;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 15 Sep 2008 13:45:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQLLDR-followed-by-if-1-then-let-sqlldr-rc-sysrc/m-p/46073#M9521</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-09-15T13:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQLLDR followed by %if (1) %then %let sqlldr_rc=&amp;sysrc;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQLLDR-followed-by-if-1-then-let-sqlldr-rc-sysrc/m-p/46074#M9522</link>
      <description>In conditional logic, 1 means TRUE. So your %if will always be true, and the assignment of sqlldr_rc will always happen.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Mon, 15 Sep 2008 13:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQLLDR-followed-by-if-1-then-let-sqlldr-rc-sysrc/m-p/46074#M9522</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-09-15T13:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: SQLLDR followed by %if (1) %then %let sqlldr_rc=&amp;sysrc;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQLLDR-followed-by-if-1-then-let-sqlldr-rc-sysrc/m-p/46075#M9523</link>
      <description>Thanks!   I didn't expect the (1) to force a true test result.   I'm not sure why the programmer didn't just code &lt;BR /&gt;
&lt;BR /&gt;
%let sqlldr_rc=&amp;amp;sysrc;&lt;BR /&gt;
&lt;BR /&gt;
Maybe this is a little slop accidently left in the code.</description>
      <pubDate>Mon, 15 Sep 2008 14:10:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQLLDR-followed-by-if-1-then-let-sqlldr-rc-sysrc/m-p/46075#M9523</guid>
      <dc:creator>JMarkW</dc:creator>
      <dc:date>2008-09-15T14:10:00Z</dc:date>
    </item>
  </channel>
</rss>

