<?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: How to use IF condition in remote server and in macros in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-IF-condition-in-remote-server-and-in-macros/m-p/424421#M104506</link>
    <description>&lt;P&gt;i think you are missing closing parenthesis and &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let country =USA;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;%nrstr(%if &amp;amp;country=USA %then %doSmiley )&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;%put the country is &amp;amp;country.; /*quotes are not needed in a macro statement that executes at compile time*/&lt;BR /&gt;Endrsubmit;&lt;BR /&gt;%mend test;&lt;BR /&gt;%test;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2018 20:27:49 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-01-02T20:27:49Z</dc:date>
    <item>
      <title>How to use IF condition in remote server and in macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-IF-condition-in-remote-server-and-in-macros/m-p/424416#M104504</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;The below code is throwing an error even after using an nrstr to convert the if statement as text to be used in remote server. Kindly let me know how to make this work&lt;BR /&gt;%macro test;&lt;BR /&gt;Rsubmit;&lt;BR /&gt;%let country =USA;&lt;BR /&gt;%nrstr(%if country=USA %then %do;)&lt;BR /&gt;%put "the country is &amp;amp;country.";&lt;BR /&gt;Endrsubmit;&lt;BR /&gt;%mend test;&lt;BR /&gt;%test;</description>
      <pubDate>Tue, 02 Jan 2018 19:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-IF-condition-in-remote-server-and-in-macros/m-p/424416#M104504</guid>
      <dc:creator>Sharathr</dc:creator>
      <dc:date>2018-01-02T19:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use IF condition in remote server and in macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-IF-condition-in-remote-server-and-in-macros/m-p/424421#M104506</link>
      <description>&lt;P&gt;i think you are missing closing parenthesis and &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let country =USA;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;%nrstr(%if &amp;amp;country=USA %then %doSmiley )&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;%put the country is &amp;amp;country.; /*quotes are not needed in a macro statement that executes at compile time*/&lt;BR /&gt;Endrsubmit;&lt;BR /&gt;%mend test;&lt;BR /&gt;%test;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 20:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-IF-condition-in-remote-server-and-in-macros/m-p/424421#M104506</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-02T20:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use IF condition in remote server and in macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-IF-condition-in-remote-server-and-in-macros/m-p/424422#M104507</link>
      <description>&lt;P&gt;Make it work locally and then add back your RSUBMIT blocks. The RSUBMIT are not the issue here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 19:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-IF-condition-in-remote-server-and-in-macros/m-p/424422#M104507</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-02T19:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use IF condition in remote server and in macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-IF-condition-in-remote-server-and-in-macros/m-p/424424#M104508</link>
      <description>&lt;P&gt;And formatting your code makes it much easier to read and follow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test;
%let country =USA;

%if &amp;amp;country=USA %then 
    %put "the country is &amp;amp;country.";
%else
    %put "Condition FAIL";

%mend test;

%test;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Jan 2018 19:49:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-IF-condition-in-remote-server-and-in-macros/m-p/424424#M104508</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-02T19:49:57Z</dc:date>
    </item>
  </channel>
</rss>

