<?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 SQL with MDX and PROC Print -very slow execution in Developers</title>
    <link>https://communities.sas.com/t5/Developers/PROC-SQL-with-MDX-and-PROC-Print-very-slow-execution/m-p/69734#M3363</link>
    <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
if I use the following MDX query in the Enterprise Guide OLAP View it takes one second to show me the result.&lt;BR /&gt;
On the other hand, if I implement it in a stored process, it does not complete. I am running it since 5 minutes now and now success.&lt;BR /&gt;
I would be very happy for any improvement suggestions.&lt;BR /&gt;
(the proc print does not work either).&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
connect to olap (host= myhost.com port=52221 protocol=bridge user=test&lt;BR /&gt;
pass="{sasenc}4dasdade" repository= Foundation olap-schema="OLAP Schema");&lt;BR /&gt;
&lt;BR /&gt;
/* pass thru to OLAP line */&lt;BR /&gt;
create table work.MDXOut as select * from connection to olap&lt;BR /&gt;
(&lt;BR /&gt;
/* My MDX Code goes here */&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
SELECT&lt;BR /&gt;
    CrossJoin(CrossJoin(Hierarchize({ [DIM_KPI].[All DIM_KPI].[TotalSales].[SalesforMarkets], &lt;BR /&gt;
[DIM_KPI].[All DIM_KPI].[TotalSales].[SalesforMarkets].Children }), { [MEASURES].[FACTSUM] }), &lt;BR /&gt;
{ [DIM_PERIOD].[All DIM_PERIOD.[2010] }) ON COLUMNS,&lt;BR /&gt;
    Hierarchize({ [DIM_SALES].[All DIM_SALES].[Agencies, [DIM_SALES].[All DIM_SALES].[Agencies].Children, &lt;BR /&gt;
[DIM_SALES].[All DIM_SALES].[Agencies].[AgenciesUSA].Children }) ON ROWS&lt;BR /&gt;
FROM&lt;BR /&gt;
    [testcube]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
/* End of MDX Code */&lt;BR /&gt;
&lt;BR /&gt;
disconnect from olap;&lt;BR /&gt;
/* Disconnect from the OLAP Server */&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Proc print data=work.MDXOut;&lt;BR /&gt;
var [SalesforMarkets];&lt;BR /&gt;
&lt;BR /&gt;
run;</description>
    <pubDate>Mon, 07 Feb 2011 11:17:48 GMT</pubDate>
    <dc:creator>metalray</dc:creator>
    <dc:date>2011-02-07T11:17:48Z</dc:date>
    <item>
      <title>PROC SQL with MDX and PROC Print -very slow execution</title>
      <link>https://communities.sas.com/t5/Developers/PROC-SQL-with-MDX-and-PROC-Print-very-slow-execution/m-p/69734#M3363</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
if I use the following MDX query in the Enterprise Guide OLAP View it takes one second to show me the result.&lt;BR /&gt;
On the other hand, if I implement it in a stored process, it does not complete. I am running it since 5 minutes now and now success.&lt;BR /&gt;
I would be very happy for any improvement suggestions.&lt;BR /&gt;
(the proc print does not work either).&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
connect to olap (host= myhost.com port=52221 protocol=bridge user=test&lt;BR /&gt;
pass="{sasenc}4dasdade" repository= Foundation olap-schema="OLAP Schema");&lt;BR /&gt;
&lt;BR /&gt;
/* pass thru to OLAP line */&lt;BR /&gt;
create table work.MDXOut as select * from connection to olap&lt;BR /&gt;
(&lt;BR /&gt;
/* My MDX Code goes here */&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
SELECT&lt;BR /&gt;
    CrossJoin(CrossJoin(Hierarchize({ [DIM_KPI].[All DIM_KPI].[TotalSales].[SalesforMarkets], &lt;BR /&gt;
[DIM_KPI].[All DIM_KPI].[TotalSales].[SalesforMarkets].Children }), { [MEASURES].[FACTSUM] }), &lt;BR /&gt;
{ [DIM_PERIOD].[All DIM_PERIOD.[2010] }) ON COLUMNS,&lt;BR /&gt;
    Hierarchize({ [DIM_SALES].[All DIM_SALES].[Agencies, [DIM_SALES].[All DIM_SALES].[Agencies].Children, &lt;BR /&gt;
[DIM_SALES].[All DIM_SALES].[Agencies].[AgenciesUSA].Children }) ON ROWS&lt;BR /&gt;
FROM&lt;BR /&gt;
    [testcube]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
/* End of MDX Code */&lt;BR /&gt;
&lt;BR /&gt;
disconnect from olap;&lt;BR /&gt;
/* Disconnect from the OLAP Server */&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Proc print data=work.MDXOut;&lt;BR /&gt;
var [SalesforMarkets];&lt;BR /&gt;
&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 07 Feb 2011 11:17:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/PROC-SQL-with-MDX-and-PROC-Print-very-slow-execution/m-p/69734#M3363</guid>
      <dc:creator>metalray</dc:creator>
      <dc:date>2011-02-07T11:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL with MDX and PROC Print -very slow execution</title>
      <link>https://communities.sas.com/t5/Developers/PROC-SQL-with-MDX-and-PROC-Print-very-slow-execution/m-p/69735#M3364</link>
      <description>nearly two hours have passed and no result. I stopped the program in EG 4.2. I got the port number wrong &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;  - no error message to indicate there was a connection problem.</description>
      <pubDate>Mon, 07 Feb 2011 13:06:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/PROC-SQL-with-MDX-and-PROC-Print-very-slow-execution/m-p/69735#M3364</guid>
      <dc:creator>metalray</dc:creator>
      <dc:date>2011-02-07T13:06:52Z</dc:date>
    </item>
  </channel>
</rss>

