<?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: if any help me to resolve error in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537683#M7097</link>
    <description>&lt;P&gt;use IN operator&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if country&amp;nbsp; &lt;STRONG&gt;IN&lt;/STRONG&gt; ('CA' , 'AU')&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Feb 2019 14:07:56 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-02-22T14:07:56Z</dc:date>
    <item>
      <title>if any help me to resolve error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537681#M7096</link>
      <description>&lt;P&gt;data reg;&lt;BR /&gt;set oriontst.REGION;&lt;/P&gt;&lt;P&gt;if country =('CA' , 'AU') then&lt;BR /&gt;do;&lt;BR /&gt;discount=0.10;&lt;BR /&gt;discount_type='required';&lt;BR /&gt;region='north_america';&lt;BR /&gt;end;&lt;BR /&gt;else if country ='OTHERS' then&lt;BR /&gt;do;&lt;BR /&gt;discount=0.05;&lt;BR /&gt;discount_type='optional';&lt;BR /&gt;region NE 'north_america';&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My errors:&lt;/P&gt;&lt;DIV class="sasSource"&gt;71 data reg;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72 set oriontst.supplier;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 if country =('CA' , 'AU') then&lt;/DIV&gt;&lt;DIV class="sasError"&gt;_&lt;/DIV&gt;&lt;DIV class="sasError"&gt;388&lt;/DIV&gt;&lt;DIV class="sasError"&gt;200&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 do;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;__&lt;/DIV&gt;&lt;DIV class="sasError"&gt;180&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 388-185: Expecting an arithmetic operator.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 discount=0.10;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 discount_type='required';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 region='north_america';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 end;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;___&lt;/DIV&gt;&lt;DIV class="sasError"&gt;161&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 else if country ='OTHERS' then&lt;/DIV&gt;&lt;DIV class="sasError"&gt;____&lt;/DIV&gt;&lt;DIV class="sasError"&gt;160&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 161-185: No matching DO/SELECT statement.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 160-185: No matching IF-THEN clause.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81 do;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82 discount=0.05;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 discount_type='optional';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84 region NE 'north_america';&lt;/DIV&gt;&lt;DIV class="sasError"&gt;______&lt;/DIV&gt;&lt;DIV class="sasError"&gt;180&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85 end;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;86 run;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Feb 2019 14:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537681#M7096</guid>
      <dc:creator>asundha</dc:creator>
      <dc:date>2019-02-22T14:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: if any help me to resolve error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537683#M7097</link>
      <description>&lt;P&gt;use IN operator&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if country&amp;nbsp; &lt;STRONG&gt;IN&lt;/STRONG&gt; ('CA' , 'AU')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 14:07:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537683#M7097</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-22T14:07:56Z</dc:date>
    </item>
    <item>
      <title>how to write code for given task below in attachment</title>
      <link>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537684#M7105</link>
      <description />
      <pubDate>Fri, 22 Feb 2019 14:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537684#M7105</guid>
      <dc:creator>asundha</dc:creator>
      <dc:date>2019-02-22T14:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: if any help me to resolve error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537685#M7098</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if country =('CA' , 'AU') then do;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is not proper syntax. You want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if country in ('CA','AU') then do;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the future, please click on the {i} icon and paste your log into this window. We need to see your log, and we need to see it formatted properly for ease of reading, so please DO NOT SKIP THIS STEP.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 14:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537685#M7098</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-22T14:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: if any help me to resolve error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537690#M7099</link>
      <description>&lt;P&gt;Use the in operator:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if country in ('CA','AU') then do;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;region NE 'north_america';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is not a valid SAS statement. What should it do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS see my footnotes for hints on posting code and logs ({i} and "little running man" buttons).&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 14:11:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537690#M7099</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-22T14:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: if any help me to resolve error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537691#M7100</link>
      <description>If I use in also&lt;BR /&gt;I'm getting error like this&lt;BR /&gt;Statement is not valid or it is used out of order&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Feb 2019 14:11:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537691#M7100</guid>
      <dc:creator>asundha</dc:creator>
      <dc:date>2019-02-22T14:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: if any help me to resolve error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537693#M7101</link>
      <description>&lt;P&gt;I think that's because&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;region NE 'north_america'; /*wrong assignment*/&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;is wrong in your else clause&lt;/SPAN&gt;&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;&lt;SPAN&gt;else if country ='OTHERS' then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;do;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;discount=0.05;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;discount_type='optional';&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;region NE 'north_america';&amp;nbsp; &amp;nbsp;Wrong&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;end;&lt;/SPAN&gt;&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>Fri, 22 Feb 2019 14:15:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537693#M7101</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-22T14:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: if any help me to resolve error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537694#M7102</link>
      <description>just now i was added the task in attachment</description>
      <pubDate>Fri, 22 Feb 2019 14:15:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537694#M7102</guid>
      <dc:creator>asundha</dc:creator>
      <dc:date>2019-02-22T14:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: if any help me to resolve error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537696#M7103</link>
      <description />
      <pubDate>Fri, 22 Feb 2019 14:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537696#M7103</guid>
      <dc:creator>asundha</dc:creator>
      <dc:date>2019-02-22T14:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: if any help me to resolve error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537700#M7104</link>
      <description>&lt;P&gt;ok then what is the correct code .&lt;/P&gt;&lt;P&gt;see in the attachment(task) below.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 14:20:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537700#M7104</guid>
      <dc:creator>asundha</dc:creator>
      <dc:date>2019-02-22T14:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to write code for given task below in attachment</title>
      <link>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537702#M7106</link>
      <description>&lt;P&gt;Sorry, we are really not here to do your homework.&amp;nbsp; That question is very simple, and it is for you to do the programming on.&amp;nbsp; If you have specific questions, come back with them, show what you have done and where you are stuck, and avoid using attachments - put text in the body of the post.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 14:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537702#M7106</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-02-22T14:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: if any help me to resolve error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537704#M7107</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/263443"&gt;@asundha&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;If I use in also&lt;BR /&gt;I'm getting error like this&lt;BR /&gt;Statement is not valid or it is used out of order&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The log points you to invalid code, and see my previous post.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 14:28:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537704#M7107</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-22T14:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: if any help me to resolve error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537715#M7108</link>
      <description>&lt;P&gt;Correction:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;region = 'NOT north_america';&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Feb 2019 14:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537715#M7108</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-22T14:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: if any help me to resolve error</title>
      <link>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537746#M7109</link>
      <description>Comment every line and you'll find your mistake.</description>
      <pubDate>Fri, 22 Feb 2019 16:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/if-any-help-me-to-resolve-error/m-p/537746#M7109</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-22T16:30:24Z</dc:date>
    </item>
  </channel>
</rss>

