I am teaching myself how to use lists in SAS/IML as available in SAS onDemand for Academics. The sample program on the SAS/IML 15.1 User Guide p. 169 contains the code
%include sampsrc(LstBST.sas); /* define modules */
proc iml;
load module = _all_; /* load modules */
x = {5 3 1 9 1 6 4}`;
bst = BSTCreate(x);
title "Diagram of Binary Search Tree";
call BSTPlot(bst);
quit;
which, when I run the code, produces the following error message:
Has anyone else encountered this error? Is the SAMPSRC library not included in the SAS/IML product for SAS onDemand for Academics?
Thanks in advance,
Ross Bettinger
Unfortunately, I don't know the answer to your question about SODA. However, the examples are part of the documentation and are publically available in other installations of SAS. I've put the list-related example programs in a github repo so that you can browse or download them:
Hope that helps.
I the github repository created by @Rick_SAS there is no file named "LstBST.sas".
But there is a file named "lstbst.sas".
Filenames on unix filesystems are case sensitive.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.