<?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 Macro Question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-Question/m-p/24042#M4036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be helpful if you can post all the content of log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;options mprint mlogic symbolgen;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2011 08:22:09 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2011-10-05T08:22:09Z</dc:date>
    <item>
      <title>Macro Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Question/m-p/24038#M4032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone please help me to fix this macro issue? I cant find anything from the log file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%LEt Retail_30_B = .165;&lt;BR /&gt;%Let Retail_30_G = .165;&lt;BR /&gt;%Let Retail_30_B_DF = 1;&lt;BR /&gt;%Let Retail_30_G_DF = 1;&lt;/P&gt;&lt;P&gt;%LEt Retail_90_B = .165;&lt;BR /&gt;%Let Retail_90_G = .165;&lt;BR /&gt;%Let Retail_90_B_DF = 1;&lt;BR /&gt;%Let Retail_90_G_DF = 1;&lt;/P&gt;&lt;P&gt;%Let Mail_B = .25;&lt;BR /&gt;%Let Mail_G = .73;&lt;BR /&gt;%Let MAil_B_DF = 0;&lt;BR /&gt;%Let Mail_G_DF = 0;&lt;/P&gt;&lt;P&gt;%Let Specialty_Disc = .17;&lt;BR /&gt;%Let Specialty_DF = 0;&lt;/P&gt;&lt;P&gt;data final;&lt;BR /&gt;set Claims_Join;&lt;/P&gt;&lt;P&gt;MAC =&amp;nbsp; macunitcost_num * qty_disp;&lt;BR /&gt;format Ingrediant_Cost 15.5 Final_ING_Cost 15.5;&lt;/P&gt;&lt;P&gt;if retail90_30 = 'Retail 30'and Type = 'Brand' then Ingrediant_Cost = Pre_AWP*(1-(&amp;amp;Retail_30_B.));&lt;BR /&gt;else if retail90_30 = 'Retail 30' and type = 'Generic' and MAC = . then Ingrediant_Cost = Pre_AWP*(1-(&amp;amp;Retail_30_G.));&lt;BR /&gt;else if type = 'Generic' and MAC &amp;lt;&amp;gt; . then Ingrediant_Cost = MAC;&lt;BR /&gt;else if retail90_30 = 'Retail 90'and Type = 'Brand' then Ingrediant_Cost = Pre_AWP*(1-(&amp;amp;Retail_90_B.));&lt;BR /&gt;else if retail90_30 = 'Retail 90' and type = 'Generic' and MAC = . then Ingrediant_Cost = Pre_AWP*(1-(&amp;amp;Retail_90_G.));&lt;BR /&gt;else specialty_ind = 'Y' then Ingrediant_Cost = Pre_AWP*(1-(&amp;amp;Specialty_Disc.));&lt;BR /&gt;Final_ING_Cost = min(U_and_C, Ingrediant_Costpe);&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 20:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Question/m-p/24038#M4032</guid>
      <dc:creator>skallamp</dc:creator>
      <dc:date>2011-10-04T20:38:43Z</dc:date>
    </item>
    <item>
      <title>Macro Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Question/m-p/24039#M4033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's not enough information to help you yet.&amp;nbsp; Can you turn on macro diagnostics like:&amp;nbsp; options mprint macrogen;&amp;nbsp; ahead of your macro, submit, and post the log please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 20:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Question/m-p/24039#M4033</guid>
      <dc:creator>DLing</dc:creator>
      <dc:date>2011-10-04T20:46:50Z</dc:date>
    </item>
    <item>
      <title>Macro Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Question/m-p/24040#M4034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ERROR 388-185: Expecting an arithmetic operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any syntax error here? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Claims_final;&lt;BR /&gt;set Claims_Join;&lt;/P&gt;&lt;P&gt; MAC =&amp;nbsp; macunitcost_num * qty_disp;&lt;BR /&gt; format Ingrediant_Cost 15.5 Final_ING_Cost 15.5;&lt;/P&gt;&lt;P&gt; if retail90_30 = 'Retail 30'and Type = 'Brand' then Ingrediant_Cost = Pre_AWP*(1-(&amp;amp;Retail_30_B.));&lt;BR /&gt; else if retail90_30 = 'Retail 30' and Type = 'Generic' and MAC = . then Ingrediant_Cost = Pre_AWP*(1-(&amp;amp;Retail_30_G.));&lt;BR /&gt; else if type = 'Generic' and MAC &amp;lt;&amp;gt; . then Ingrediant_Cost = MAC;&lt;BR /&gt; else if retail90_30 = 'Retail 90'and Type = 'Brand' then Ingrediant_Cost = Pre_AWP*(1-(&amp;amp;Retail_90_B.));&lt;BR /&gt; else if retail90_30 = 'Retail 90' and Type = 'Generic' and MAC = . then Ingrediant_Cost = Pre_AWP*(1-(&amp;amp;Retail_90_G.));&lt;BR /&gt; else specialty_ind = 'Y' then Ingrediant_Cost = Pre_AWP*(1-(&amp;amp;Specialty_Disc.));&lt;BR /&gt; Final_ING_Cost = min(U_and_C, Ingrediant_Costpe);&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 21:34:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Question/m-p/24040#M4034</guid>
      <dc:creator>skallamp</dc:creator>
      <dc:date>2011-10-04T21:34:18Z</dc:date>
    </item>
    <item>
      <title>Macro Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Question/m-p/24041#M4035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would really help if you provided sample data, in the form of a datastep, when posting your questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would think that the following is closer to what you were trying to submit.&amp;nbsp; The problems I noticed were the use of &amp;lt;&amp;gt; which I presume meant NE, a statement where you indicated else specialty_ind=etc., etc, but looked like you meant else if, and you have a variable that may or may not be misspelled Ingrediant_Costpe (above and beyond the Ingrediant part), a the use of single quotes around variables that contain spaces:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data final;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set Claims_Join;&lt;/P&gt;&lt;P&gt;&amp;nbsp; MAC =&amp;nbsp; macunitcost_num * qty_disp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format Ingrediant_Cost 15.5 Final_ING_Cost 15.5;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if retail90_30 = "Retail 30" and Type = 'Brand' then Ingrediant_Cost = Pre_AWP*(1-(&amp;amp;Retail_30_B.));&lt;/P&gt;&lt;P&gt;&amp;nbsp; else if retail90_30 = "Retail 30" and type = 'Generic' and MAC = . then Ingrediant_Cost = Pre_AWP*(1-(&amp;amp;Retail_30_G.));&lt;/P&gt;&lt;P&gt;&amp;nbsp; else if type = 'Generic' and MAC NE . then Ingrediant_Cost = MAC;&lt;/P&gt;&lt;P&gt;&amp;nbsp; else if retail90_30 = "Retail 90" and Type = 'Brand' then Ingrediant_Cost = Pre_AWP*(1-(&amp;amp;Retail_90_B.));&lt;/P&gt;&lt;P&gt;&amp;nbsp; else if retail90_30 = "Retail 90" and type = 'Generic' and MAC = . then Ingrediant_Cost = Pre_AWP*(1-(&amp;amp;Retail_90_G.));&lt;/P&gt;&lt;P&gt;&amp;nbsp; else IF specialty_ind = 'Y' then Ingrediant_Cost = Pre_AWP*(1-(&amp;amp;Specialty_Disc.));&lt;/P&gt;&lt;P&gt;&amp;nbsp; Final_ING_Cost = min(U_and_C, Ingrediant_Cost);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 21:52:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Question/m-p/24041#M4035</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-04T21:52:44Z</dc:date>
    </item>
    <item>
      <title>Macro Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Question/m-p/24042#M4036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be helpful if you can post all the content of log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;options mprint mlogic symbolgen;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 08:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Question/m-p/24042#M4036</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-10-05T08:22:09Z</dc:date>
    </item>
    <item>
      <title>Macro Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Question/m-p/24043#M4037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks a lot Art297.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 14:20:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Question/m-p/24043#M4037</guid>
      <dc:creator>skallamp</dc:creator>
      <dc:date>2011-10-05T14:20:52Z</dc:date>
    </item>
  </channel>
</rss>

