<?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 select into macro variable - no row selected with single quotation mark in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/select-into-macro-variable-no-row-selected-with-single-quotation/m-p/125568#M25631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why this marco doesn't work:&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; t(var=);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;proc sql;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;select name into: name from sashelp.class where name=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'&amp;amp;var.'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; _user_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt; &lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;%&lt;STRONG&gt;&lt;EM&gt;t&lt;/EM&gt;&lt;/STRONG&gt;(var=Henry);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;what is wrong with my single quotation mark?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Mar 2013 04:30:49 GMT</pubDate>
    <dc:creator>ZRick</dc:creator>
    <dc:date>2013-03-02T04:30:49Z</dc:date>
    <item>
      <title>select into macro variable - no row selected with single quotation mark</title>
      <link>https://communities.sas.com/t5/SAS-Programming/select-into-macro-variable-no-row-selected-with-single-quotation/m-p/125568#M25631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why this marco doesn't work:&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; t(var=);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;proc sql;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;select name into: name from sashelp.class where name=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; background: white;"&gt;'&amp;amp;var.'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; _user_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt; &lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt; &lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;%&lt;STRONG&gt;&lt;EM&gt;t&lt;/EM&gt;&lt;/STRONG&gt;(var=Henry);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;what is wrong with my single quotation mark?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 04:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/select-into-macro-variable-no-row-selected-with-single-quotation/m-p/125568#M25631</guid>
      <dc:creator>ZRick</dc:creator>
      <dc:date>2013-03-02T04:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: select into macro variable - no row selected with single quotation mark</title>
      <link>https://communities.sas.com/t5/SAS-Programming/select-into-macro-variable-no-row-selected-with-single-quotation/m-p/125569#M25632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Macro language references are not expanded when enclosed in single quote marks. Use double quote character instead.&lt;/P&gt;&lt;P&gt;name = "&amp;amp;var" &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 04:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/select-into-macro-variable-no-row-selected-with-single-quotation/m-p/125569#M25632</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-03-02T04:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: select into macro variable - no row selected with single quotation mark</title>
      <link>https://communities.sas.com/t5/SAS-Programming/select-into-macro-variable-no-row-selected-with-single-quotation/m-p/125570#M25633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is this the only main difference when choosing to use single or double quotation?&lt;/P&gt;&lt;P&gt;I always thought single/double quotation can be used interchangeably.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 05:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/select-into-macro-variable-no-row-selected-with-single-quotation/m-p/125570#M25633</guid>
      <dc:creator>ZRick</dc:creator>
      <dc:date>2013-03-02T05:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: select into macro variable - no row selected with single quotation mark</title>
      <link>https://communities.sas.com/t5/SAS-Programming/select-into-macro-variable-no-row-selected-with-single-quotation/m-p/125571#M25634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good topic for a SUG paper. Their differences seem to be more than just that. Especially when you refer Windows path ( X command, etc) or using SQL pass-thru ( well, to be fair, that is NOT a difference within SAS).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 05:52:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/select-into-macro-variable-no-row-selected-with-single-quotation/m-p/125571#M25634</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-03-02T05:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: select into macro variable - no row selected with single quotation mark</title>
      <link>https://communities.sas.com/t5/SAS-Programming/select-into-macro-variable-no-row-selected-with-single-quotation/m-p/125572#M25635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it safe to say that double quote is more generic than single quote in passing macro variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 08:20:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/select-into-macro-variable-no-row-selected-with-single-quotation/m-p/125572#M25635</guid>
      <dc:creator>ZRick</dc:creator>
      <dc:date>2013-03-02T08:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: select into macro variable - no row selected with single quotation mark</title>
      <link>https://communities.sas.com/t5/SAS-Programming/select-into-macro-variable-no-row-selected-with-single-quotation/m-p/125573#M25636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a nice write up in the on line documentation.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a001071889.htm"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a001071889.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 14:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/select-into-macro-variable-no-row-selected-with-single-quotation/m-p/125573#M25636</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-03-02T14:51:04Z</dc:date>
    </item>
  </channel>
</rss>

