Example
of a session set using SQL pass-through and CREATE SET:
proc sql;
connect to olap (host=host-name port=port-number
user="userid" pass="password");
execute
(
create set booksnall.threeyears as
{[YQM].[All YQM].[1999] :[YQM].[All YQM].[2001]}
) by olap;
create table temp as select * from connection to olap
(
SELECT threeyears ON COLUMNS ,
{[products].[all products].[books]} ON ROWS
FROM [booksnall]
);
disconnect from olap;
quit;
Example
of how to drop a set by using DROP SET:
proc sql;
connect to olap (host=host-name port=port-number user="userid"
pass="password");
execute
(
DROP SET booksnall.threeyears
) by olap;
disconnect from olap;
quit;