<?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: Find work of a specific Metadatauser in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397382#M10442</link>
    <description>&lt;P&gt;If you have Workspace Server logging enabled (that includes the PID in the log file name) you could also look at the&amp;nbsp;%LET _CLIENTUSERID = 'xxx' value that SAS Enterprise Guide writes to the log. That could also help...&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2017 10:48:07 GMT</pubDate>
    <dc:creator>nhvdwalt</dc:creator>
    <dc:date>2017-09-20T10:48:07Z</dc:date>
    <item>
      <title>Find work of a specific Metadatauser</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397365#M10438</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to find the work directory of a specific user. I'm on SAS 9.4M2 and AIX 7.1. I have access to the directory on AIX where all the work directories are stored and I can see names like this one:&lt;/P&gt;
&lt;P&gt;/work/SAS_work591503DB00F0_cdb2/SAS_workC10603DB00F0_cdb2 - This is my current work for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to match this folder to my metauser?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. I know about&amp;nbsp;%sysfunc(getoption(work)) but I'm looking for something where I can add the parameter of a userId or proc options option=work;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 09:42:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397365#M10438</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2017-09-20T09:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Find work of a specific Metadatauser</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397373#M10439</link>
      <description>&lt;P&gt;Depending on how your security is set up, the AIX user that owns that folder will be the user that's running the SAS jobs.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 10:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397373#M10439</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2017-09-20T10:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Find work of a specific Metadatauser</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397374#M10440</link>
      <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sadly the owner of the workfolder is a technical users, as the SAS-Users don't have profiles on the AIX&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 10:04:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397374#M10440</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2017-09-20T10:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Find work of a specific Metadatauser</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397376#M10441</link>
      <description>&lt;P&gt;Ok, try this....Its a bit manual, but it should do the trick...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look at the name of the workspace directory and get the PID of the SAS process. In this case you will convert&amp;nbsp;00F0 from hex to decimal and get a process ID of 240. Look up this PID in the Object Spawer log to see if you can figure out for which client it was created. You might see the requesting client is the Technical User, but should also be able to get the SAS application and IP address that made the request.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 10:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397376#M10441</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2017-09-20T10:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Find work of a specific Metadatauser</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397382#M10442</link>
      <description>&lt;P&gt;If you have Workspace Server logging enabled (that includes the PID in the log file name) you could also look at the&amp;nbsp;%LET _CLIENTUSERID = 'xxx' value that SAS Enterprise Guide writes to the log. That could also help...&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 10:48:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397382#M10442</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2017-09-20T10:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find work of a specific Metadatauser</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397388#M10443</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/50279"&gt;@Criptic&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you invoke SAS, it assigns the Work libref to a subdirectory of the directory specified in the WORK system option described in &lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/69602/HTML/default/p1sfbiur6ts3oxn1e24mfbtnfm2y.htm" target="_self"&gt;WORK System Option: UNIX&lt;/A&gt;. This subdirectory is usually named &lt;STRONG&gt;SAS_workcode_nodename&lt;/STRONG&gt;, and has the following characteristics:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;workcode&lt;BR /&gt;is a 12-character code. The first four characters are randomly generated numbers. The next eight characters are based on the hexadecimal process identification number of the SAS session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;nodename&lt;BR /&gt;is the name of the UNIX computer where the SAS process is running.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 11:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397388#M10443</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2017-09-20T11:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Find work of a specific Metadatauser</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397393#M10445</link>
      <description>&lt;P&gt;Thank you. This is perfect for what I'm trying to do.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 11:15:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397393#M10445</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2017-09-20T11:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Find work of a specific Metadatauser</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397395#M10446</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/50279"&gt;@Criptic&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are welcome!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 11:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397395#M10446</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2017-09-20T11:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Find work of a specific Metadatauser</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397396#M10447</link>
      <description>&lt;P&gt;Thank you again for your time. I'm accepted a different answer as my solution as it was way easier to automate but thank you again for the effort and response!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 11:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/397396#M10447</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2017-09-20T11:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Find work of a specific Metadatauser</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/398013#M10466</link>
      <description>&lt;DIV class="lia-quilt-row lia-quilt-row-forum-message-main"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-right lia-quilt-column-main-right"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;
&lt;DIV id="messagebodydisplay_0_2" class="lia-message-body lia-component-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/50279"&gt;@Criptic&lt;/a&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Sadly the owner of the workfolder is a technical users, as the SAS-Users don't have profiles on the AIX&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-forum-message-footer"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-forum-message-footer"&gt;You may want to take a look at this thing I wrote a few months ago - there's a mechanism for identifying SASWORK users by their Metadata ID: &lt;A href="https://github.com/Boemska/worktop" target="_self"&gt;https://github.com/Boemska/worktop&lt;/A&gt;. I have a commit pending that removes the dependency on bash and runs standalone in ksh, in case you don't have bash installed on your environment.&lt;/DIV&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-forum-message-footer"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-forum-message-footer"&gt;Obviously&amp;nbsp;&lt;A href="https://boemskats.com/esm/" target="_self"&gt;ESM&lt;/A&gt; also does this very nicely, and we support AIX 7.&lt;/DIV&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-forum-message-footer"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-forum-message-footer"&gt;Hope this helps.&lt;/DIV&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-forum-message-footer"&gt;Nik&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Sep 2017 08:04:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/398013#M10466</guid>
      <dc:creator>boemskats</dc:creator>
      <dc:date>2017-09-22T08:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Find work of a specific Metadatauser</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/398014#M10467</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;BR /&gt;I ran across your tool in another post&amp;nbsp;on the forum. Your tool looks great but it is complete overkill for what I'm trying to achieve here.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 08:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/398014#M10467</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2017-09-22T08:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Find work of a specific Metadatauser</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/398015#M10468</link>
      <description>&lt;P&gt;Fair&amp;nbsp;- I had to mention it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're scripting have a look at this bit of worktop specifically as it's one mechanism for metadata user identification at filesystem level:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Boemska/worktop#3-update-your-workspace-server-config" target="_self"&gt;https://github.com/Boemska/worktop#3-update-your-workspace-server-config&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nik&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 08:17:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/398015#M10468</guid>
      <dc:creator>boemskats</dc:creator>
      <dc:date>2017-09-22T08:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Find work of a specific Metadatauser</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/398106#M10476</link>
      <description>&lt;P&gt;Using the information provided above by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&amp;nbsp;and the SMC, Server plug-in monitoring feature, you can retrieve the information and join manually SAS Session PID and Work path :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/bisag/68240/HTML/default/viewer.htm#p0o497lmygjfrfn0z7t999n72tpg.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/bisag/68240/HTML/default/viewer.htm#p0o497lmygjfrfn0z7t999n72tpg.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Automating this join shouldn't be unfeasible either :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2016/02/15/using-proc-iomoperate/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2016/02/15/using-proc-iomoperate/&lt;/A&gt;&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;</description>
      <pubDate>Fri, 22 Sep 2017 14:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Find-work-of-a-specific-Metadatauser/m-p/398106#M10476</guid>
      <dc:creator>ronan</dc:creator>
      <dc:date>2017-09-22T14:15:16Z</dc:date>
    </item>
  </channel>
</rss>

