<?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: How to use Filename indata pipe to get the file names in a directory from Unix environment. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573762#M12562</link>
    <description>&lt;P&gt;Then just replacing dir with ls and not using /b is my suggestion. May be this will work.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2019 07:23:10 GMT</pubDate>
    <dc:creator>koyelghosh</dc:creator>
    <dc:date>2019-07-16T07:23:10Z</dc:date>
    <item>
      <title>How to use Filename indata pipe to get the file names in a directory from Unix environment.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573755#M12558</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me to get the file names in a directory from Unix environment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below code is for Windows,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;filename indata pipe 'dir "/home/euqyi/shared_folder/user_data/Vishal/pah/Inflated/Data Month March 2019/pah_dx_??????.txt" /b';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will it work for Unix environment ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the below piece of code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename indata pipe 'dir "/home/eupoq/shared_folder/user_data/Richard/pah/Inflated/Data Month March 2019/pah_dx_??????.txt" /b';&lt;/P&gt;&lt;P&gt;data file_list;&lt;BR /&gt;length fname $50;&lt;BR /&gt;infile indata truncover; /* infile statement for file names */&lt;BR /&gt;input fname $50.; /* read the file names from the directory */&lt;BR /&gt;call symput ('num_files',_n_); /* store the record number in a macro variable */&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And getting below error in Output data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;fname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1 dir: cannot access /home/euqyi/shared_folder/user_&lt;/P&gt;&lt;P&gt;2 dir: cannot access /b: No such file or directory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 06:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573755#M12558</guid>
      <dc:creator>karthic2612</dc:creator>
      <dc:date>2019-07-16T06:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Filename indata pipe to get the file names in a directory from Unix environment.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573756#M12559</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/223640"&gt;@karthic2612&lt;/a&gt;&amp;nbsp;I think for Unix the dir counterpart is ls. May be you can try.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 07:03:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573756#M12559</guid>
      <dc:creator>koyelghosh</dc:creator>
      <dc:date>2019-07-16T07:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Filename indata pipe to get the file names in a directory from Unix environment.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573757#M12560</link>
      <description>&lt;P&gt;What is the purpose of /b in Windows?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 07:05:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573757#M12560</guid>
      <dc:creator>koyelghosh</dc:creator>
      <dc:date>2019-07-16T07:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Filename indata pipe to get the file names in a directory from Unix environment.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573759#M12561</link>
      <description>&lt;P&gt;we can use the DOS command "dir" with the /B option to list only the file names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 07:14:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573759#M12561</guid>
      <dc:creator>karthic2612</dc:creator>
      <dc:date>2019-07-16T07:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Filename indata pipe to get the file names in a directory from Unix environment.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573762#M12562</link>
      <description>&lt;P&gt;Then just replacing dir with ls and not using /b is my suggestion. May be this will work.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 07:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573762#M12562</guid>
      <dc:creator>koyelghosh</dc:creator>
      <dc:date>2019-07-16T07:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Filename indata pipe to get the file names in a directory from Unix environment.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573763#M12563</link>
      <description>&lt;P&gt;A simple&lt;/P&gt;
&lt;PRE&gt;ls&lt;/PRE&gt;
&lt;P&gt;is the UNIX equivalent of dir with the /b option.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 07:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573763#M12563</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-16T07:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Filename indata pipe to get the file names in a directory from Unix environment.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573784#M12571</link>
      <description>&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked for me. By replacing ls with dir and /b option.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 09:13:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573784#M12571</guid>
      <dc:creator>karthic2612</dc:creator>
      <dc:date>2019-07-16T09:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Filename indata pipe to get the file names in a directory from Unix environment.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573786#M12572</link>
      <description>&lt;P&gt;All the best&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 09:14:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-use-Filename-indata-pipe-to-get-the-file-names-in-a/m-p/573786#M12572</guid>
      <dc:creator>koyelghosh</dc:creator>
      <dc:date>2019-07-16T09:14:43Z</dc:date>
    </item>
  </channel>
</rss>

