<?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: Problem with quoted macrovariable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217325#M40043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom! This works! Did not know that function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2015 12:50:59 GMT</pubDate>
    <dc:creator>Filipvdr</dc:creator>
    <dc:date>2015-08-06T12:50:59Z</dc:date>
    <item>
      <title>Problem with quoted macrovariable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217316#M40034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not finding a solution for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a stored process which will write some values into a dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let value = ABC","123","TEST","HELLO","WHAT;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;value = "&amp;amp;value";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ofcourse, this does not work... i guess there is a really simple solution for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 15:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217316#M40034</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2015-08-05T15:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with quoted macrovariable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217317#M40035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif; font-size: 10pt;"&gt;This can be solved by the use of %QUOTE and %NRQUOTE Functions in macros. Please go through the link&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif; font-size: 10pt;"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#z3514quote.htm" title="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#z3514quote.htm"&gt;SAS(R) 9.2 Macro Language: Reference&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 15:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217317#M40035</guid>
      <dc:creator>Narasimha_Kulkarni33</dc:creator>
      <dc:date>2015-08-05T15:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with quoted macrovariable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217318#M40036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here method using SCAN function.&amp;nbsp; There are many other ways too.&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; value = "ABC","123","TEST","HELLO","WHAT";&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; test;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; valuelist $&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;256&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; valuelist = symget(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'VALUE'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; valuelist i;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; i = &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;by&lt;/SPAN&gt; &lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = dequote(scan(valuelist,i,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;','&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;));&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; missing(value) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; leave;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;output&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;end&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;stop&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;print&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 15:40:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217318#M40036</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-08-05T15:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with quoted macrovariable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217319#M40037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will explain a little bit more in detail:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A user can save his query by clicking the button, a stored process launches which will save his filter settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: he wants to filter the countries BE,NL and FR. The value which is passed to the SAVE stored process is BE","NL","FR. &lt;/P&gt;&lt;P&gt;I need to store this in a column, in one field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later, the user can use an other stored process, to retrieve his old query. &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://server/program=FILTER&amp;amp;countries=BE"&gt;http://server/program=FILTER&amp;amp;countries=BE&lt;/A&gt;&lt;SPAN&gt;","NL",FR"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is more clear?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 15:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217319#M40037</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2015-08-05T15:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with quoted macrovariable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217320#M40038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;You can use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;%let value = %nrbquote(ABC","123","TEST","HELLO","WHAT);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;and then the data step works:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;value = "&amp;amp;value";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 15:48:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217320#M40038</guid>
      <dc:creator>billfish</dc:creator>
      <dc:date>2015-08-05T15:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with quoted macrovariable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217321#M40039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; value = "ABC","123","TEST","HELLO","WHAT";&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; test;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; valuelist $&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;256&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; valuelist = symget(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'VALUE'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;print&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 15:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217321#M40039</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-08-05T15:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with quoted macrovariable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217322#M40040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, i used billfish his answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now save &lt;SPAN style="font-family: 'courier new', courier; font-size: 13px; background-color: #ffffff;"&gt;ABC","123","TEST","HELLO","WHAT in my column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, i'm passing this value through an URL like this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://s92midp1.imec.be:8080/SASStoredProcess/do?_program=%2FShared%20Data%2F70%20SP%20public%2FFAB%2Ftxrf_main&amp;amp;sel_facility=PLINE300&amp;amp;wafersource=REFLEXION&amp;amp;TESTTYPE_LIST=Process&amp;quot;,&amp;quot;Transport&amp;quot;,&amp;quot;Transport_VTM&amp;amp;_debug=log" title="http://s92midp1.imec.be:8080/SASStoredProcess/do?_program=%2FShared%20Data%2F70%20SP%20public%2FFAB%2Ftxrf_main&amp;amp;sel_facility=PLINE300&amp;amp;wafersource=REFLEXION&amp;amp;TESTTYPE_LIST=Process&amp;quot;,&amp;quot;Transport&amp;quot;,&amp;quot;Transport_VTM&amp;amp;_debug=log"&gt;http://server:8080/SASStoredProcess/do?_program=test&amp;amp;VALUE=&lt;SPAN style="font-family: 'courier new', courier; font-size: 13px; background-color: #ffffff;"&gt;ABC","123","TEST","HELLO","WHAT&lt;/SPAN&gt;&amp;amp;_debug=log&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it does not work... &lt;STRONG&gt;for some reason my wherestring starts and ends with double quotes but if you view the note, i have single quotes, any idea?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put my whereclause to the log:&lt;/P&gt;&lt;P&gt;WHERESTRING: 1=1 and value in ("&lt;A href="http://s92midp1.imec.be:8080/SASStoredProcess/do?_program=%2FShared%20Data%2F70%20SP%20public%2FFAB%2Ftxrf_main&amp;amp;sel_facility=PLINE300&amp;amp;wafersource=REFLEXION&amp;amp;TESTTYPE_LIST=Process&amp;quot;,&amp;quot;Transport&amp;quot;,&amp;quot;Transport_VTM&amp;amp;_debug=log" style="font-size: 13.3333330154419px;" title="http://s92midp1.imec.be:8080/SASStoredProcess/do?_program=%2FShared%20Data%2F70%20SP%20public%2FFAB%2Ftxrf_main&amp;amp;sel_facility=PLINE300&amp;amp;wafersource=REFLEXION&amp;amp;TESTTYPE_LIST=Process&amp;quot;,&amp;quot;Transport&amp;quot;,&amp;quot;Transport_VTM&amp;amp;_debug=log"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13px; background-color: #ffffff;"&gt;ABC","123","TEST","HELLO","WHAT&lt;/SPAN&gt;&lt;/A&gt;") and datepart(datim) &amp;gt; 19941 and datepart(datim) &amp;lt; 20306&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;NOTE: There were 0 observations read from the data set WORK.TXRF_MAIN.&lt;BR /&gt;&amp;nbsp; WHERE (1=1) and (wafersource='REFLEXION') and (value='&lt;A class="active_link" href="http://s92midp1.imec.be:8080/SASStoredProcess/do?_program=%2FShared%20Data%2F70%20SP%20public%2FFAB%2Ftxrf_main&amp;amp;sel_facility=PLINE300&amp;amp;wafersource=REFLEXION&amp;amp;TESTTYPE_LIST=Process&amp;quot;,&amp;quot;Transport&amp;quot;,&amp;quot;Transport_VTM&amp;amp;_debug=log" style="font-size: 13.3333330154419px;" title="http://s92midp1.imec.be:8080/SASStoredProcess/do?_program=%2FShared%20Data%2F70%20SP%20public%2FFAB%2Ftxrf_main&amp;amp;sel_facility=PLINE300&amp;amp;wafersource=REFLEXION&amp;amp;TESTTYPE_LIST=Process&amp;quot;,&amp;quot;Transport&amp;quot;,&amp;quot;Transport_VTM&amp;amp;_debug=log"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13px; background-color: #ffffff;"&gt;ABC","123","TEST","HELLO","WHAT&lt;/SPAN&gt;&lt;/A&gt;') and (DATEPART(datim)&amp;gt;19941) and (DATEPART(datim)&amp;lt;20306);&lt;BR /&gt;NOTE: The data set WORK.SELECT has 0 observations and 34 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 09:29:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217322#M40040</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2015-08-06T09:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with quoted macrovariable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217323#M40041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I have not used Stored Process, so don't know how that works.&amp;nbsp; I will however point out that in my opinion macro variables are not a good storeage for lists of data.&amp;nbsp; Whenever dealing with lists I would always put them into a dataset, e.g.&lt;/P&gt;&lt;P&gt;data list;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; item="ABC"; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; item="123"; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when I need to use them in a where:&lt;/P&gt;&lt;P&gt;where value in (select ITEM from list)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its just far more robust, and generally less coding (especially %quote(&amp;amp;&amp;amp;&amp;amp;%unquote() and suchlike).&amp;nbsp; Plus, I would expect you want to do some kind of checking on the parameters given?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 09:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217323#M40041</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-08-06T09:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with quoted macrovariable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217324#M40042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like the value is quoted and so the double quotes internal to the value the macro variable VALUE are not being treated as double quotes.&lt;/P&gt;&lt;P&gt;Try something like:&lt;/P&gt;&lt;P&gt;where 1=1 and value in (%unquote("&amp;amp;value")) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 12:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217324#M40042</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-08-06T12:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with quoted macrovariable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217325#M40043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom! This works! Did not know that function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 12:50:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-quoted-macrovariable/m-p/217325#M40043</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2015-08-06T12:50:59Z</dc:date>
    </item>
  </channel>
</rss>

