<?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: SAS GRID Getting a table in the work environment of a user with a Stored Process in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-GRID-Getting-a-table-in-the-work-environment-of-a-user-with/m-p/526101#M32856</link>
    <description>You can just delete it at the end of the job if you want.  I don't because we use them for auditing and validation.</description>
    <pubDate>Thu, 10 Jan 2019 16:45:01 GMT</pubDate>
    <dc:creator>tomrvincent</dc:creator>
    <dc:date>2019-01-10T16:45:01Z</dc:date>
    <item>
      <title>SAS GRID Getting a table in the work environment of a user with a Stored Process</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-GRID-Getting-a-table-in-the-work-environment-of-a-user-with/m-p/525470#M32824</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using SAP HANA in combination with SAS GRID (Enterprise Guide). In SAP HANA we have defined several analytical tables which use input parameters (placeholders) to get data (so that we can access historical views of the data).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/*
proc sql;
connect using hdp;
create table work.output as
select 
*
from    
connection  to hdp (
select &lt;BR /&gt;Customer,&lt;BR /&gt;Age
from 
     "SAP_TABLE"
('PLACEHOLDER' = ('$$DATE$$',
	 '20181201'))  	
) z
;
disconnect from hdp;
quit;&lt;/PRE&gt;&lt;P&gt;Most of the users in my organisation are not comfortable using SAS Program code. That is why i wanted to create a stored process with a input field (so that it is still a point and click solution for my users).&amp;nbsp; The problem is that a stored process doesn't run in in the same session as the user interface. This means that the work table ends up in a different work and is not accessible to my users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am aware that i could create an additional library, but i don't want the data to persist multiple times in our sas environment (to avoid duplicate data or accidental overwrites by different users).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the solution to pass the absolute work location (path on the filesystem) to the sas stored process using.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"%sysfunc(pathname(work))",&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This works well if the SAS GRID stays on the same hostname, but because the code can run on different hostnames (due to the SASGRID setup) it is still possible that the absolute path is not accessible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also set the stored process to workspace server only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have a good idea how i could implement such as setup (or do something that is a bit more straight forward)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;environment: SAS GRID. Client: SAS Enterprise Guide 7.1&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 16:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-GRID-Getting-a-table-in-the-work-environment-of-a-user-with/m-p/525470#M32824</guid>
      <dc:creator>VtotheG</dc:creator>
      <dc:date>2019-01-08T16:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GRID Getting a table in the work environment of a user with a Stored Process</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-GRID-Getting-a-table-in-the-work-environment-of-a-user-with/m-p/526033#M32854</link>
      <description>No problem.  I do this all the time.  Create a job and userid specific work folder so that it is unique.&lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;BR /&gt;libname EXT "&amp;amp;OutputPath.&amp;amp;YMD8/&amp;amp;SYSUSERID/&amp;amp;SYSJOBID/Extract";</description>
      <pubDate>Thu, 10 Jan 2019 13:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-GRID-Getting-a-table-in-the-work-environment-of-a-user-with/m-p/526033#M32854</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-01-10T13:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GRID Getting a table in the work environment of a user with a Stored Process</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-GRID-Getting-a-table-in-the-work-environment-of-a-user-with/m-p/526050#M32855</link>
      <description>&lt;P&gt;Do how do you remove / clean the folder after the user closes the session? Do you have a daily script?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 14:04:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-GRID-Getting-a-table-in-the-work-environment-of-a-user-with/m-p/526050#M32855</guid>
      <dc:creator>VtotheG</dc:creator>
      <dc:date>2019-01-10T14:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GRID Getting a table in the work environment of a user with a Stored Process</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-GRID-Getting-a-table-in-the-work-environment-of-a-user-with/m-p/526101#M32856</link>
      <description>You can just delete it at the end of the job if you want.  I don't because we use them for auditing and validation.</description>
      <pubDate>Thu, 10 Jan 2019 16:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-GRID-Getting-a-table-in-the-work-environment-of-a-user-with/m-p/526101#M32856</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-01-10T16:45:01Z</dc:date>
    </item>
  </channel>
</rss>

