<?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 PROC OLAP delete_physical on another host in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-OLAP-delete-physical-on-another-host/m-p/623548#M77333</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i try in Enterprise Guide (EG) to delete_physical an OLAP, that is on another host/environment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I´m connectet in EG on the DEV-environment and want to delete_physical an OLAP on the TEST-environment with this statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options metaserver="TEST-environment"
        metaport=8888
        metaprotocol="bridge"
        metarepository="foundation"
        metauser="USER"
        metapass="PASSWORD"
        ;

%macro _delete_physical_olap;

  proc olap cube="OLAP-NAME" delete_physical;
     metasvr
        host        = "TEST-environment"
        port        = 8888
        olap_schema = "SASApp - OLAP Schema";
  quit;
%mend _delete_physical_olap;

%_delete_physical_olap;&lt;/PRE&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;
&lt;P&gt;So what happend:&lt;/P&gt;
&lt;P&gt;On the TEST-environment the Metadata-Registration is disabled--&amp;gt; that is what expected -&amp;gt; That´s OK&lt;/P&gt;
&lt;P&gt;BUT the physical files on the TEST-environment STILL exists - however the physical files on the DEV-environment are deleted! --&amp;gt; That´s not OK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this statement not correct? Or can "proc olap delete_physical" just disable the Metadata-Registration and NOT the physical files on another host? If so - is there an opportunity to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;George&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2020 12:33:20 GMT</pubDate>
    <dc:creator>sorosch</dc:creator>
    <dc:date>2020-02-10T12:33:20Z</dc:date>
    <item>
      <title>PROC OLAP delete_physical on another host</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-OLAP-delete-physical-on-another-host/m-p/623548#M77333</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i try in Enterprise Guide (EG) to delete_physical an OLAP, that is on another host/environment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I´m connectet in EG on the DEV-environment and want to delete_physical an OLAP on the TEST-environment with this statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options metaserver="TEST-environment"
        metaport=8888
        metaprotocol="bridge"
        metarepository="foundation"
        metauser="USER"
        metapass="PASSWORD"
        ;

%macro _delete_physical_olap;

  proc olap cube="OLAP-NAME" delete_physical;
     metasvr
        host        = "TEST-environment"
        port        = 8888
        olap_schema = "SASApp - OLAP Schema";
  quit;
%mend _delete_physical_olap;

%_delete_physical_olap;&lt;/PRE&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;
&lt;P&gt;So what happend:&lt;/P&gt;
&lt;P&gt;On the TEST-environment the Metadata-Registration is disabled--&amp;gt; that is what expected -&amp;gt; That´s OK&lt;/P&gt;
&lt;P&gt;BUT the physical files on the TEST-environment STILL exists - however the physical files on the DEV-environment are deleted! --&amp;gt; That´s not OK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this statement not correct? Or can "proc olap delete_physical" just disable the Metadata-Registration and NOT the physical files on another host? If so - is there an opportunity to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;George&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 12:33:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-OLAP-delete-physical-on-another-host/m-p/623548#M77333</guid>
      <dc:creator>sorosch</dc:creator>
      <dc:date>2020-02-10T12:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC OLAP delete_physical on another host</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-OLAP-delete-physical-on-another-host/m-p/623576#M77334</link>
      <description>&lt;P&gt;If the physical path in both environments is the same (but on different servers), then the files will be deleted on the server where the process runs, and if the process runs on the dev server, the files there will be gone.&lt;/P&gt;
&lt;P&gt;Bottom line: run the process on the intended server, don't try to switch metadata environments on the fly.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 15:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-OLAP-delete-physical-on-another-host/m-p/623576#M77334</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-10T15:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: PROC OLAP delete_physical on another host</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-OLAP-delete-physical-on-another-host/m-p/623587#M77335</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for the info.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But for me this is an illogical behavior. So i have to run the STP on the intended server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;George&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 15:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-OLAP-delete-physical-on-another-host/m-p/623587#M77335</guid>
      <dc:creator>sorosch</dc:creator>
      <dc:date>2020-02-10T15:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC OLAP delete_physical on another host</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-OLAP-delete-physical-on-another-host/m-p/623613#M77338</link>
      <description>&lt;P&gt;In the metadata definition, there is only the path stored, without an identification of the server on which it is located. The setup always assumes that you&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;connect to metadata&lt;/LI&gt;
&lt;LI&gt;start the SAS process from a definition on that metadata server&lt;/LI&gt;
&lt;LI&gt;use resources from that same metadata repository&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The SAS process assumes that its environment is consistent. By changing metadata servers mid-process, you undermine that.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 16:37:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-OLAP-delete-physical-on-another-host/m-p/623613#M77338</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-10T16:37:24Z</dc:date>
    </item>
  </channel>
</rss>

