This paper intends to explain how to access and make use of CAS tables generated in a SAS Visual Forecasting project in Viya 4. It can be useful when you want to save or manipulate some of the results programmatically in SAS Studio, for example.
Every VF project has an ID associated with it in its Viya environment. You can find the project ID by using the Copy Link button:
The project ID is located after AnalyticsGateway/Projects/, as highlighted in the example below:
With this information in hand, you can access the project caslib by using the following code:
libname mylib cas caslib="Analytics_Project_<projectID>";
In my example, I should use:
libname mylib cas caslib="Analytics_Project_f637043c-9546-489a-830a-3bbca9520432";
This libname statement will generate the mylib library associated with the project caslib, and you will be able to see all of its tables in the interface:
The code '8764ADC7' in some of the tables refers to the pipeline from which the table is associated. If you have more than one pipeline in your project, you will have more than one code. As an example, this is how the outfor table looks:
I hope the above information will help you achieve your goal when manipulating results from SAS Visual Forecasting.
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 save with the early bird rate—just $795!
The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.