<?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: checking if olap cube exist in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/checking-if-olap-cube-exist/m-p/55201#M11759</link>
    <description>Given the statement: "My code"....&lt;BR /&gt;
&lt;BR /&gt;
Suggest you share your code, ideally embedded in a SAS-generated log output to help forum readers to visualize / understand what your code is doing.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Fri, 23 Jul 2010 13:19:14 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-07-23T13:19:14Z</dc:date>
    <item>
      <title>checking if olap cube exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-if-olap-cube-exist/m-p/55200#M11758</link>
      <description>Hi,&lt;BR /&gt;
Need some help with olaps.&lt;BR /&gt;
&lt;BR /&gt;
My code creates OLAP cube.&lt;BR /&gt;
Before it creates OLAP cube it deletes it.&lt;BR /&gt;
Everything is ok, when cube already exists.&lt;BR /&gt;
When it doesn't exist error is generated like:&lt;BR /&gt;
ERROR: The registration for cube TESTCUBE was not found on the metadata server.&lt;BR /&gt;
it also makes macro variable syscc ne 0.&lt;BR /&gt;
&lt;BR /&gt;
So i want to insert some "if-then" statement, which checks if cube already exists.&lt;BR /&gt;
Anyone knows how to do that.&lt;BR /&gt;
&lt;BR /&gt;
P.s. SBB don't bother suggesting searching for google or SAS sites. I had already done that.</description>
      <pubDate>Fri, 23 Jul 2010 12:32:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-if-olap-cube-exist/m-p/55200#M11758</guid>
      <dc:creator>SAS_user</dc:creator>
      <dc:date>2010-07-23T12:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: checking if olap cube exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-if-olap-cube-exist/m-p/55201#M11759</link>
      <description>Given the statement: "My code"....&lt;BR /&gt;
&lt;BR /&gt;
Suggest you share your code, ideally embedded in a SAS-generated log output to help forum readers to visualize / understand what your code is doing.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 23 Jul 2010 13:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-if-olap-cube-exist/m-p/55201#M11759</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-07-23T13:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: checking if olap cube exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-if-olap-cube-exist/m-p/55202#M11760</link>
      <description>try using "exist" function.&lt;BR /&gt;
GL.</description>
      <pubDate>Fri, 23 Jul 2010 14:12:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-if-olap-cube-exist/m-p/55202#M11760</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-07-23T14:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: checking if olap cube exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-if-olap-cube-exist/m-p/55203#M11761</link>
      <description>Also useful to know would be these things:&lt;BR /&gt;
1) Are you using OLAP cubes within the context of the BI Platform (also known as the SAS Platform for Business Analytics)???&lt;BR /&gt;
2) Are you using a DI Studio job to build your OLAP cube?&lt;BR /&gt;
3) Are you using code generated in OLAP Cube Studio to build your cube?&lt;BR /&gt;
4) If you are using the BI Platform, do you have access to view the metadata definitions via SAS Management Console????&lt;BR /&gt;
5) If you are not directly using the SAS BI Platform or DI Studio and/or OLAP cube studio, are you perhaps using a product called Futrix and using OLAP cubes under that context????&lt;BR /&gt;
 &lt;BR /&gt;
  Finally, this is probably not the best forum to post OLAP questions. You may find some OLAP cube users/builders here, but most OLAP cubes these days are used/built/maintained under the context of the BI Platform and most of those folks can be found in the Web Report Studio forum.&lt;BR /&gt;
            &lt;BR /&gt;
  As for Googling to find out more information, the documentation for PROC OLAP is here (with examples):&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/olapug/59574/HTML/default/viewer.htm#/documentation/cdl/en/olapug/59574/HTML/default/a002255372.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/olapug/59574/HTML/default/viewer.htm#/documentation/cdl/en/olapug/59574/HTML/default/a002255372.htm&lt;/A&gt;&lt;BR /&gt;
            &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 23 Jul 2010 14:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-if-olap-cube-exist/m-p/55203#M11761</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-07-23T14:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: checking if olap cube exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-if-olap-cube-exist/m-p/55204#M11762</link>
      <description>Cynthia&lt;BR /&gt;
&lt;BR /&gt;
I am using SAS code like, which can be generated from OLAP Cube Studio.&lt;BR /&gt;
The code is submited in SAS batch mode.&lt;BR /&gt;
&lt;BR /&gt;
I don't understand why the code is needed? I ask how to check if cube exist, you ask me, how i create cubes.&lt;BR /&gt;
&lt;BR /&gt;
The question is simple if there is any way, how to check if cube exist. It must be done with sas datastep functions.&lt;BR /&gt;
More detail question is: &lt;BR /&gt;
How to check if cube exist (is registered) on metadata server?&lt;BR /&gt;
&lt;BR /&gt;
Ok, i also try to ask the same question in web report Studio.&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;sastech&lt;/U&gt;&lt;BR /&gt;
&lt;BR /&gt;
exist function is for datasets/views/catalogs not for olap cube.</description>
      <pubDate>Fri, 23 Jul 2010 19:59:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-if-olap-cube-exist/m-p/55204#M11762</guid>
      <dc:creator>SAS_user</dc:creator>
      <dc:date>2010-07-23T19:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: checking if olap cube exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-if-olap-cube-exist/m-p/55205#M11763</link>
      <description>Hi:&lt;BR /&gt;
  The way to check whether a cube exists might NOT be as simple as you suppose. It might NOT happen with Base SAS or Foundation SAS datastep functions. I believe you have to make a call to the metadata repository to check the existence of a cube. &lt;BR /&gt;
&lt;BR /&gt;
 For example, as you found out, the EXIST function checks for the existence of a SAS library member and your OLAP cube (depending on your configuration) may not be known by a library location, but instead might be known by a metadata repository location. Since this forum is for mostly "Base SAS" and Display Manager folks, there's not as much awareness of BI Platform maintenance issues or BI-related procedures.&lt;BR /&gt;
                        &lt;BR /&gt;
If you want to check the existence of metadata objects, then I believe the way to do that is through the use of calls to the metadata using the special DATA step functions designed for use with metadata objects, as described here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrmeta/60739/HTML/default/viewer.htm#/documentation/cdl/en/lrmeta/60739/HTML/default/a003105516.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrmeta/60739/HTML/default/viewer.htm#/documentation/cdl/en/lrmeta/60739/HTML/default/a003105516.htm&lt;/A&gt; &lt;BR /&gt;
 &lt;BR /&gt;
For more specific help with these datastep functions, you might want to open a track with SAS Tech Support.&lt;BR /&gt;
   &lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 23 Jul 2010 21:32:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-if-olap-cube-exist/m-p/55205#M11763</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-07-23T21:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: checking if olap cube exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-if-olap-cube-exist/m-p/55206#M11764</link>
      <description>Thank you, Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Yes, using these functions, and a help from some resources i managed to check if cube exist.&lt;BR /&gt;
Of course first we have to place so metadata options.&lt;BR /&gt;
The example is here:&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
rc=metadata_getnobj("omsobj:Cube?@Name='"||"&amp;amp;cube_name"||"'",1,uri);&lt;BR /&gt;
put uri;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 28 Jul 2010 12:12:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-if-olap-cube-exist/m-p/55206#M11764</guid>
      <dc:creator>SAS_user</dc:creator>
      <dc:date>2010-07-28T12:12:52Z</dc:date>
    </item>
  </channel>
</rss>

