<?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: MACRO Broken in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/MACRO-Broken/m-p/408039#M99514</link>
    <description>&lt;P&gt;Please provide exactly what happens that makes you think the macro is broken.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;And paste the result of the Log into a code box opened using the forum {I} menu icon. It is important to paste into a code box as the message window reformats some of the error and warning messages and those often provide something that points to offending code errors.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The Input function wants an informat to apply when attempting to do what ever to the variable data_yr so you should have gotten an error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Other possible problems may exist but we need to see the log for that.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Oct 2017 14:19:24 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-10-27T14:19:24Z</dc:date>
    <item>
      <title>MACRO Broken</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-Broken/m-p/408030#M99513</link>
      <description>&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN&gt;&lt;FONT face="Courier New" size="2" color="blue"&gt;options&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="black"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="blue"&gt;mprint&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="black"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="blue"&gt;mlogic&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="black"&gt;;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN&gt;&lt;FONT face="Courier New" size="2" color="navy"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="black"&gt;&amp;nbsp;type(data);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN&gt;&lt;FONT face="Courier New" size="2" color="black"&gt;data &amp;amp;data;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN&gt;&lt;FONT face="Courier New" size="2" color="black"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="teal"&gt;astc.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="black"&gt;&amp;amp;data;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN&gt;&lt;FONT face="Courier New" size="2" color="black"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year=input(data_yr);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN&gt;&lt;FONT face="Courier New" size="2" color="black"&gt;run;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN&gt;&lt;FONT face="Courier New" size="2" color="navy"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="black"&gt;&amp;nbsp;type;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN&gt;&lt;FONT face="Courier New" size="2" color="black"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN&gt;&lt;FONT face="Courier New" size="2" color="black"&gt;%&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="black"&gt;&lt;STRONG&gt;&lt;I&gt;type&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="black"&gt;&amp;nbsp;(ppa_astc_cms1500_2013);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Oct 2017 14:05:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-Broken/m-p/408030#M99513</guid>
      <dc:creator>Juli13</dc:creator>
      <dc:date>2017-10-27T14:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO Broken</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-Broken/m-p/408039#M99514</link>
      <description>&lt;P&gt;Please provide exactly what happens that makes you think the macro is broken.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;And paste the result of the Log into a code box opened using the forum {I} menu icon. It is important to paste into a code box as the message window reformats some of the error and warning messages and those often provide something that points to offending code errors.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The Input function wants an informat to apply when attempting to do what ever to the variable data_yr so you should have gotten an error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Other possible problems may exist but we need to see the log for that.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 14:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-Broken/m-p/408039#M99514</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-27T14:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO Broken</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-Broken/m-p/408050#M99515</link>
      <description>&lt;P&gt;MACRO language isn't broken&amp;nbsp; Rather, your SAS language program is broken.&amp;nbsp; The INPUT function requires two arguments, and you have only supplied one.&amp;nbsp; It is best to follow the usual rule:&amp;nbsp; Get the program working without any macro language, and then turn the working code into a macro.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 14:29:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-Broken/m-p/408050#M99515</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-10-27T14:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO Broken</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-Broken/m-p/408080#M99516</link>
      <description>&lt;P&gt;The only thing broken is your data step coding skills, as others have already mentioned &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since no SAS/STAT procedures are involved, I moved this thread to Base SAS Programming, where it belongs.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 15:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-Broken/m-p/408080#M99516</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-27T15:24:12Z</dc:date>
    </item>
  </channel>
</rss>

