<?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 retrieve the Server and Path of a task from a custom task in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-retrieve-the-Server-and-Path-of-a-task-from-a-custom-task/m-p/266336#M18477</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40756"&gt;@abbieagocs﻿&lt;/a&gt;&amp;nbsp;- just to help close the loop on this in the forum (as we discussed in e-mail offline).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There isn't a documented method for pulling the full path of the SAS program file. &amp;nbsp;There are some tricks you can try (which I sent in e-mail), but those approaches will limit the support of your task to a specific EG version and it can be difficult to maintain.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This &lt;A href="https://github.com/cjdinger/SasProjectDemo" target="_self"&gt;SAS Project Demo example on GitHub&lt;/A&gt; shows how you can pull SAS code from a project/process flow. &amp;nbsp;That might help, depending on what you're trying to do.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2016 12:08:03 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2016-04-26T12:08:03Z</dc:date>
    <item>
      <title>How to retrieve the Server and Path of a task from a custom task</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-retrieve-the-Server-and-Path-of-a-task-from-a-custom-task/m-p/266082#M18465</link>
      <description>&lt;P&gt;Does anyone know how to obtain the full path to the a sas file from a custom task?&lt;/P&gt;&lt;P&gt;I am looking to retrieve the values of the FilePath and Server to run on - properties found when I click right on a node in the process Flow project tree.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've enumerated as follows:&lt;/P&gt;&lt;P&gt;List&amp;lt;ISASProjectTask&amp;gt; tasks = flow.GetTasks();&lt;BR /&gt;foreach (ISASProjectTask t in tasks)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;ISASProjectItem i = (ISASProjectItem)t;&lt;BR /&gt;&amp;nbsp; ISASProjectData pd = (ISASProjectData)t;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However - there is no data required so the ISASProjectData is empty, I can get the Name from the ISASProjectItem. (I was hoping that the path would be valid)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 15:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-retrieve-the-Server-and-Path-of-a-task-from-a-custom-task/m-p/266082#M18465</guid>
      <dc:creator>abbieagocs</dc:creator>
      <dc:date>2016-04-25T15:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the Server and Path of a task from a custom task</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-retrieve-the-Server-and-Path-of-a-task-from-a-custom-task/m-p/266336#M18477</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40756"&gt;@abbieagocs﻿&lt;/a&gt;&amp;nbsp;- just to help close the loop on this in the forum (as we discussed in e-mail offline).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There isn't a documented method for pulling the full path of the SAS program file. &amp;nbsp;There are some tricks you can try (which I sent in e-mail), but those approaches will limit the support of your task to a specific EG version and it can be difficult to maintain.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This &lt;A href="https://github.com/cjdinger/SasProjectDemo" target="_self"&gt;SAS Project Demo example on GitHub&lt;/A&gt; shows how you can pull SAS code from a project/process flow. &amp;nbsp;That might help, depending on what you're trying to do.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 12:08:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-retrieve-the-Server-and-Path-of-a-task-from-a-custom-task/m-p/266336#M18477</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-04-26T12:08:03Z</dc:date>
    </item>
  </channel>
</rss>

