<?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: Can We infile all logs in a folder by their owner ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-We-infile-all-logs-in-a-folder-by-their-owner/m-p/857351#M338785</link>
    <description>&lt;P&gt;The INFILE wildcard syntax does not support a filter by owner.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use an OS command (issued through FILENAME PIPE or SYSTASK) to generate a list of matching files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="shell"&gt;find ./*.log -maxdepth 1 -user &amp;lt;ownerid&amp;gt; -ls&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can use DATA step functions to FOPEN each file and retrieve "Owner Name" info using FINFO. &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostunx/p0rtd85lrdft6en1mhzqfbp55fv4.htm" target="_self"&gt;Documentation here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 12:57:56 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2023-02-06T12:57:56Z</dc:date>
    <item>
      <title>Can We infile all logs in a folder by their owner ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-We-infile-all-logs-in-a-folder-by-their-owner/m-p/857314#M338767</link>
      <description>&lt;P&gt;We are using infile&amp;nbsp; of all logs in a folder&amp;nbsp; with the code:-&lt;/P&gt;
&lt;P&gt;infile 'foldername/*.log'&lt;/P&gt;
&lt;P&gt;There is an owner information near the log name, in Linux.&lt;/P&gt;
&lt;P&gt;Can we use this owner information in sas ?&lt;/P&gt;
&lt;P&gt;Instead of all the&amp;nbsp; logs in the folder - to infile only logs with a specific owner (user name)&amp;nbsp; that created the logs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 08:06:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-We-infile-all-logs-in-a-folder-by-their-owner/m-p/857314#M338767</guid>
      <dc:creator>J111</dc:creator>
      <dc:date>2023-02-06T08:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can We infile all logs in a folder by their owner ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-We-infile-all-logs-in-a-folder-by-their-owner/m-p/857351#M338785</link>
      <description>&lt;P&gt;The INFILE wildcard syntax does not support a filter by owner.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use an OS command (issued through FILENAME PIPE or SYSTASK) to generate a list of matching files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="shell"&gt;find ./*.log -maxdepth 1 -user &amp;lt;ownerid&amp;gt; -ls&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can use DATA step functions to FOPEN each file and retrieve "Owner Name" info using FINFO. &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostunx/p0rtd85lrdft6en1mhzqfbp55fv4.htm" target="_self"&gt;Documentation here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 12:57:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-We-infile-all-logs-in-a-folder-by-their-owner/m-p/857351#M338785</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2023-02-06T12:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can We infile all logs in a folder by their owner ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-We-infile-all-logs-in-a-folder-by-their-owner/m-p/857357#M338788</link>
      <description>&lt;P&gt;Thanks we shall check it.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 13:26:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-We-infile-all-logs-in-a-folder-by-their-owner/m-p/857357#M338788</guid>
      <dc:creator>J111</dc:creator>
      <dc:date>2023-02-06T13:26:52Z</dc:date>
    </item>
  </channel>
</rss>

