<?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: range with hyphen and colon in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/range-with-hyphen-and-colon/m-p/707326#M26496</link>
    <description>&lt;P&gt;:Var1 - :Var4 describes a range of macro variable names in proc SQL, as in&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="xisDoc-codeFragment  language-sas"&gt;&lt;CODE&gt;select style, sqfeet
   into :type1 - :type4 notrim, :size1 - :size3
   from sasuser.houses;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 20 Dec 2020 23:42:26 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2020-12-20T23:42:26Z</dc:date>
    <item>
      <title>range with hyphen and colon</title>
      <link>https://communities.sas.com/t5/New-SAS-User/range-with-hyphen-and-colon/m-p/707267#M26479</link>
      <description>&lt;P&gt;hyphen and colon can effectively express a range, such as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;input name $1-6&amp;nbsp; &amp;nbsp;/*6 positions for a name&lt;/P&gt;
&lt;P&gt;array score (4) score1-score4;&lt;/P&gt;
&lt;P&gt;var1=sum(of col2-col11, of col13-col30);&lt;/P&gt;
&lt;P&gt;sheet="name-class $A2:C6"&amp;nbsp; &amp;nbsp;/*a data range of the excel sheet of class&lt;/P&gt;
&lt;P&gt;'A' - 'F'; letters range from A to F&lt;/P&gt;
&lt;P&gt;'A-F' a string of three characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any other cases?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 15:42:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/range-with-hyphen-and-colon/m-p/707267#M26479</guid>
      <dc:creator>anming</dc:creator>
      <dc:date>2020-12-20T15:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: range with hyphen and colon</title>
      <link>https://communities.sas.com/t5/New-SAS-User/range-with-hyphen-and-colon/m-p/707269#M26480</link>
      <description>&lt;P&gt;There's the double-hyphen which can be used for variable lists to denote you want consecutive variables from a data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.class;
    var age--weight;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;and a variation if you only want numeric variables in the variable list&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.baseball(obs=20);
    var name team crbb-numeric-salary;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and a similar (and obvious) modification gets you all of the character variables in the list of variables.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 16:44:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/range-with-hyphen-and-colon/m-p/707269#M26480</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-20T16:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: range with hyphen and colon</title>
      <link>https://communities.sas.com/t5/New-SAS-User/range-with-hyphen-and-colon/m-p/707302#M26493</link>
      <description>&lt;P&gt;[a-z] describes a range of characters in a regular expression&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 20:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/range-with-hyphen-and-colon/m-p/707302#M26493</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-12-20T20:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: range with hyphen and colon</title>
      <link>https://communities.sas.com/t5/New-SAS-User/range-with-hyphen-and-colon/m-p/707326#M26496</link>
      <description>&lt;P&gt;:Var1 - :Var4 describes a range of macro variable names in proc SQL, as in&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="xisDoc-codeFragment  language-sas"&gt;&lt;CODE&gt;select style, sqfeet
   into :type1 - :type4 notrim, :size1 - :size3
   from sasuser.houses;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 23:42:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/range-with-hyphen-and-colon/m-p/707326#M26496</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-12-20T23:42:26Z</dc:date>
    </item>
  </channel>
</rss>

