BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Can any one send me the base sas code for connecting to OLAP Server.
1 REPLY 1
ChrisHemedinger
Community Manager
Are you looking for something like this:

/* supply your correct olap host machine and port */
PROC SQL;
CONNECT TO OLAP (HOST="myOlapServer" PORT=7994);
CREATE TABLE WORK.SLICE AS
SELECT * FROM CONNECTION TO OLAP
(SELECT
{ CrossJoin ( { [TIME].[YWD].DefaultMember.Level.Members } , { [Measures].[COSTPRICE_PER_UNITAVG] } ) } ON COLUMNS , { [CUSTOMERS].[All CUSTOMERS].Children } ON ROWS FROM
[DETAIL]
);
DISCONNECT FROM OLAP;
RUN;
QUIT;
SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1 reply
  • 973 views
  • 0 likes
  • 2 in conversation