<?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: SAS set statement in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-set-statement/m-p/323191#M62077</link>
    <description>&lt;P&gt;My guess: &amp;nbsp;&amp;amp;VMCNT was created by PROC SQL and thus includes leading blanks. &amp;nbsp;The easiest way to overcome this is to add this statement before the DATA step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let vmcnt = &amp;amp;vmcnt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively (depending on how much subsequent processing has taken place), you might be able to use &amp;amp;SQLOBS instead of &amp;amp;VMCNT.&lt;/P&gt;</description>
    <pubDate>Sun, 08 Jan 2017 01:46:02 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-01-08T01:46:02Z</dc:date>
    <item>
      <title>SAS set statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-set-statement/m-p/323184#M62074</link>
      <description>&lt;P&gt;I am trying to use the set statement for multiple datasets in one shot namely I have datasets vmoreranked1,vmoreranked2,vmoreranked3,...But constantly getting an error&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; data stackorig;
set vmoreranked1-vmoreranked&amp;amp;vmcnt; run;
                  -
                  22&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, ;, END, KEY, KEYS, NOBS, OPEN, POINT, &lt;EM&gt;DATA&lt;/EM&gt;, &lt;EM&gt;LAST&lt;/EM&gt;, &lt;EM&gt;NULL&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;Can someone help?&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2017 00:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-set-statement/m-p/323184#M62074</guid>
      <dc:creator>Lopa2016</dc:creator>
      <dc:date>2017-01-08T00:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS set statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-set-statement/m-p/323187#M62075</link>
      <description>&lt;P&gt;What version of SAS do you have? This type of syntax is valid in SAS 9.3+&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2017 00:34:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-set-statement/m-p/323187#M62075</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-08T00:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS set statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-set-statement/m-p/323190#M62076</link>
      <description>&lt;P&gt;This may be caused by&amp;nbsp;&amp;amp;vmcnt not resolving correctly. Check by replacing this with a number like 2 just to see if it fixes the problem.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2017 01:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-set-statement/m-p/323190#M62076</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-01-08T01:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS set statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-set-statement/m-p/323191#M62077</link>
      <description>&lt;P&gt;My guess: &amp;nbsp;&amp;amp;VMCNT was created by PROC SQL and thus includes leading blanks. &amp;nbsp;The easiest way to overcome this is to add this statement before the DATA step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let vmcnt = &amp;amp;vmcnt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively (depending on how much subsequent processing has taken place), you might be able to use &amp;amp;SQLOBS instead of &amp;amp;VMCNT.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2017 01:46:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-set-statement/m-p/323191#M62077</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-01-08T01:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS set statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-set-statement/m-p/323192#M62078</link>
      <description>I agree with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;, may be there are leading blank spaces in the macro variable vmcnt, so try to use %cmpres function which will remove the blank if any.&lt;BR /&gt;&lt;BR /&gt;data stackorig;&lt;BR /&gt;set vmoreranked1-vmoreranked%cmpres(&amp;amp;vmcnt); &lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Sun, 08 Jan 2017 02:52:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-set-statement/m-p/323192#M62078</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-01-08T02:52:58Z</dc:date>
    </item>
  </channel>
</rss>

