<?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: %scan function in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/scan-function/m-p/731992#M80384</link>
    <description>&lt;P&gt;Macro calls start with %.&lt;/P&gt;
&lt;P&gt;So as a minimum you need to use&lt;/P&gt;
&lt;PRE&gt;%storms(2021 2022)&lt;/PRE&gt;</description>
    <pubDate>Wed, 07 Apr 2021 17:36:03 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-04-07T17:36:03Z</dc:date>
    <item>
      <title>%scan function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scan-function/m-p/731991#M80383</link>
      <description>&lt;P&gt;I am trying to set start_yr to be 2021 and end_yr to be 2022, using the macro below. I am a beginner in SAS programming language. Can someone help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro storms(yr);&lt;BR /&gt;%let start_yr = %scan(&amp;amp;yr,1);&lt;/P&gt;&lt;P&gt;%let end_yr = %scan(&amp;amp;yr,2);&lt;BR /&gt;%put &amp;amp;=start_yr;&lt;/P&gt;&lt;P&gt;%put &amp;amp;=end_yr;&lt;BR /&gt;%mend storms;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;%storms(2021 2022)&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 21:05:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scan-function/m-p/731991#M80383</guid>
      <dc:creator>marathon2</dc:creator>
      <dc:date>2022-01-07T21:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: %scan function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scan-function/m-p/731992#M80384</link>
      <description>&lt;P&gt;Macro calls start with %.&lt;/P&gt;
&lt;P&gt;So as a minimum you need to use&lt;/P&gt;
&lt;PRE&gt;%storms(2021 2022)&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Apr 2021 17:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scan-function/m-p/731992#M80384</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-04-07T17:36:03Z</dc:date>
    </item>
  </channel>
</rss>

