<?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 macro variable resolution in pipe?? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/macro-variable-resolution-in-pipe/m-p/112978#M31296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data two;&lt;/P&gt;&lt;P&gt;set one(keep=year);&lt;/P&gt;&lt;P&gt;call symput('newyear',year);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename dirlist pipe 'ls "/data/set1/&amp;amp;year." /s';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here &amp;amp;year. is not resolving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any papers on this pipe?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2013 23:03:39 GMT</pubDate>
    <dc:creator>sassharp</dc:creator>
    <dc:date>2013-02-18T23:03:39Z</dc:date>
    <item>
      <title>macro variable resolution in pipe??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-variable-resolution-in-pipe/m-p/112978#M31296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data two;&lt;/P&gt;&lt;P&gt;set one(keep=year);&lt;/P&gt;&lt;P&gt;call symput('newyear',year);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename dirlist pipe 'ls "/data/set1/&amp;amp;year." /s';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here &amp;amp;year. is not resolving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any papers on this pipe?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 23:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-variable-resolution-in-pipe/m-p/112978#M31296</guid>
      <dc:creator>sassharp</dc:creator>
      <dc:date>2013-02-18T23:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: macro variable resolution in pipe??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-variable-resolution-in-pipe/m-p/112979#M31297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use double quotes on the outside to allow macro variable references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; set one ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; call symputx('newyear',year);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; stop;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;filename dirlist pipe "ls -R ""/data/set1/&amp;amp;year"" " ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 23:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-variable-resolution-in-pipe/m-p/112979#M31297</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-02-18T23:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: macro variable resolution in pipe??</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-variable-resolution-in-pipe/m-p/112980#M31298</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;Try this with single quotes around the file path:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data two;&lt;/P&gt;&lt;P&gt;set one(keep=year);&lt;/P&gt;&lt;P&gt;call symput('newyear',year);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename dirlist pipe '/data/set1/&amp;amp;year.';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Daman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 04:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-variable-resolution-in-pipe/m-p/112980#M31298</guid>
      <dc:creator>damanaulakh88</dc:creator>
      <dc:date>2013-02-19T04:24:21Z</dc:date>
    </item>
  </channel>
</rss>

