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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.