<?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: relatvive reference when using VIEWS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/relatvive-reference-when-using-VIEWS/m-p/932481#M366832</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/442335"&gt;@samlac&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you for the quick reply. By curiosity, would there be a way to do it with a Dataset? By your answer, I understand that the limitation comes from SQL.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No. The physical location of a dataset is determined through the library assignment, no matter where in SAS you use them.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2024 20:09:39 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2024-06-14T20:09:39Z</dc:date>
    <item>
      <title>relatvive reference when using VIEWS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/relatvive-reference-when-using-VIEWS/m-p/932439#M366809</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having an issue with this code:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;%IF &lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;SAVE_OUTPUT. &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; Y %THEN &lt;/SPAN&gt;&lt;SPAN&gt;%DO&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt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t;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; QUIT&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;%END&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV&gt;Although its working great, if I move the folder that contain the 2 referenced tables and my view to some other location. The view will not be working as the libname was a static path.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can I make the reference to my two tables relative to the path of the location of the view I want to create? So that I can move my folder anywhere without breaking the View.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Best regards,&lt;/DIV&gt;&lt;DIV&gt;Samuel&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 15:39:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/relatvive-reference-when-using-VIEWS/m-p/932439#M366809</guid>
      <dc:creator>samlac</dc:creator>
      <dc:date>2024-06-14T15:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: relatvive reference when using VIEWS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/relatvive-reference-when-using-VIEWS/m-p/932440#M366810</link>
      <description>You need to redefine the library to the new physical path. In SQL, there is no „relative“ path to a table. A single-level name will always point to WORK or USER.</description>
      <pubDate>Fri, 14 Jun 2024 15:54:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/relatvive-reference-when-using-VIEWS/m-p/932440#M366810</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-06-14T15:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: relatvive reference when using VIEWS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/relatvive-reference-when-using-VIEWS/m-p/932444#M366812</link>
      <description>Thank you for the quick reply. By curiosity, would there be a way to do it with a Dataset? By your answer, I understand that the limitation comes from SQL.</description>
      <pubDate>Fri, 14 Jun 2024 16:45:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/relatvive-reference-when-using-VIEWS/m-p/932444#M366812</guid>
      <dc:creator>samlac</dc:creator>
      <dc:date>2024-06-14T16:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: relatvive reference when using VIEWS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/relatvive-reference-when-using-VIEWS/m-p/932481#M366832</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/442335"&gt;@samlac&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you for the quick reply. By curiosity, would there be a way to do it with a Dataset? By your answer, I understand that the limitation comes from SQL.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No. The physical location of a dataset is determined through the library assignment, no matter where in SAS you use them.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 20:09:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/relatvive-reference-when-using-VIEWS/m-p/932481#M366832</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-06-14T20:09:39Z</dc:date>
    </item>
  </channel>
</rss>

