BookmarkSubscribeRSS Feed
Phil_SBI
Calcite | Level 5
In a proc SQL, is it possible to read the data from an external OLAP Cube (like Essbase or Microsoft) via OLE DB like for a SAS OLAP cube?

example with a SAS OLAP cube:
proc sql;
connect to olap (host=localhost port=5451
user=sasdemo pass=SASDEMO);
create table temp as select * from connection to olap
(
SELECT
{ [geo].[All geo].Children } ON COLUMNS ,
{ CrossJoin ( Hierarchize({ [product].[product].[All product], [product].[product].[All product].Children }) ,
{ [Measures].[QuantitySUM] } ) } ON ROWS
FROM
[Orion]
);
disconnect from olap;
quit;
2 REPLIES 2
ChrisNZ
Tourmaline | Level 20
Yes you can do this, you need sas/access to oledb.

See doc TS-700,
DLanningham
SAS Employee

There are some topics in the SAS OLAP Server User's Guide that may also be of use. See the topics:

  • Accessing OLAP Cubes from SAS : SQL Pass-Through Facility for OLAP
  • Connecting to a SAS OLAP Server Using the OLEDB Protocol

Note:  the SQLRC macro will also let you validate the success of your Proc SQL connection.  This willbe documented in the 9.4 release.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 2713 views
  • 0 likes
  • 3 in conversation