BookmarkSubscribeRSS Feed
Sai-Reddy
Calcite | Level 5
I am running the below code in SAS university Studio & Keep encountering the below Error.

Error: The data set perm.EX1 must be a CAS engine libref.

I am unable to figure out, how to create a CAS engine libref.

**********************************************************************************************;
libname perm '/folders/myfolders/Data';

data mycas.ex1; length id 8; do id=1 to 1000000; x1 = ranuni(101); x2 = 10*ranuni(201); output; end; run;

proc binning data=mycas.ex1 numbin=10 method=quantile;
input x1-x2;
output out=mycas.out1;
run;

 

7 REPLIES 7
SASKiwi
PROC Star

CAS is part of SAS Viya which isn't available in SAS UE. SAS UE is based on SAS 9 only.

Sai-Reddy
Calcite | Level 5

Is there a way for me to Quantile Binning on SAS UE?

Since proc Binning only accepts CAS libname statements.

Sai-Reddy
Calcite | Level 5
Is there a way for me to do Quantile Binning on SAS UE?

Since proc Binning only accepts CAS libname statements.
SASKiwi
PROC Star

@Sai-Reddy  - According to this link PROC HPBIN may provide what you want: https://support.sas.com/kb/30/333.html

 

Sai-Reddy
Calcite | Level 5

Proc HPBin does not work on SAS UE, I tried that before doing Proc Binning.

SASKiwi
PROC Star

@Sai-Reddy  - Perhaps someone more statistically-minded like @Reeza might be able to help.

Reeza
Super User

PROC RANK should give you the same answer. 

You could also do it manually via a data step, see this post here for an example:

https://blogs.sas.com/content/iml/2019/08/05/proc-hpbin-bin-variables-sas.html

 

proc rank data=mycas.ex1 groups=10;
var x1-x2;
ranks rank1 rank2;
run;

@Sai-Reddy wrote:
I am running the below code in SAS university Studio & Keep encountering the below Error.

Error: The data set perm.EX1 must be a CAS engine libref.

I am unable to figure out, how to create a CAS engine libref.

**********************************************************************************************;
libname perm '/folders/myfolders/Data';

data mycas.ex1; length id 8; do id=1 to 1000000; x1 = ranuni(101); x2 = 10*ranuni(201); output; end; run;

proc binning data=mycas.ex1 numbin=10 method=quantile;
input x1-x2;
output out=mycas.out1;
run;

 


 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 7 replies
  • 4562 views
  • 0 likes
  • 3 in conversation