<?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 How to specify pathname of filename with * in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-specify-pathname-of-filename-with/m-p/613811#M179319</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want full path of filename using " * ".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But follow code gets only "&lt;CODE class=" language-sas"&gt;c:\temp\*.csv&lt;/CODE&gt;".&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename test "c:\temp\*.csv";

data want;
  infile test dsd;
  length path $256;
  input a b;
  path=pathname('path');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What I want is the value of the following path variable.&lt;/P&gt;
&lt;P&gt;c:\temp\a.csv&lt;/P&gt;
&lt;P&gt;c:\temp\b.csv&lt;/P&gt;
&lt;P&gt;c:\temp\c.csv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can get path value by using filename with pipe, dir command and loop proc import, but if i use&amp;nbsp;filename with " * " is easy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks all help.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Dec 2019 05:46:45 GMT</pubDate>
    <dc:creator>japelin</dc:creator>
    <dc:date>2019-12-25T05:46:45Z</dc:date>
    <item>
      <title>How to specify pathname of filename with *</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-specify-pathname-of-filename-with/m-p/613811#M179319</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want full path of filename using " * ".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But follow code gets only "&lt;CODE class=" language-sas"&gt;c:\temp\*.csv&lt;/CODE&gt;".&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename test "c:\temp\*.csv";

data want;
  infile test dsd;
  length path $256;
  input a b;
  path=pathname('path');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What I want is the value of the following path variable.&lt;/P&gt;
&lt;P&gt;c:\temp\a.csv&lt;/P&gt;
&lt;P&gt;c:\temp\b.csv&lt;/P&gt;
&lt;P&gt;c:\temp\c.csv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can get path value by using filename with pipe, dir command and loop proc import, but if i use&amp;nbsp;filename with " * " is easy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks all help.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2019 05:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-specify-pathname-of-filename-with/m-p/613811#M179319</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2019-12-25T05:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify pathname of filename with *</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-specify-pathname-of-filename-with/m-p/613812#M179320</link>
      <description>&lt;P&gt;Do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
length path fname $256;
infile "c:\temp\*.csv" dsd filename=fname;
path = fname;
input a b;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Dec 2019 08:25:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-specify-pathname-of-filename-with/m-p/613812#M179320</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-25T08:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify pathname of filename with *</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-specify-pathname-of-filename-with/m-p/613813#M179321</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;Your code works well!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't know filename option.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2019 08:42:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-specify-pathname-of-filename-with/m-p/613813#M179321</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2019-12-25T08:42:14Z</dc:date>
    </item>
  </channel>
</rss>

