We frequently wish to capture the output tables from our forecasting projects. With SAS Visual Forecasting 8.5, it's easy to do! First, let’s review what tables are created.
Select any image to see a larger version.
Mobile users: To view the images, select the "Full" version at the bottom of the page.
Exporting output tables from Visual Forecasting 8.5 is as simple as simple as 1, 2, 3.
Below we will go step by step through this process and how to find and access our tables once they are saved. We'll also reveal an EVEN EASIER way to get your tables into Visual Analytics where you can explore and visualize them and use them in reports.
Let's review what the output attributes (columns) are for each table.
OUTFOR
OUTMODELINFO
OUTSELECT (All the OUTSTAT Plus Selected Status and Model Label)
OUTSTAT
All the same attributes as OUTSELECT except does not include Selected Status and Model Label.
OUTSUM
MERGED_ATTRIBUTES
All variables from all the other tables merged into one table plus:
OUTLOG
Let’s see how easy it is to export these tables!
We start with an already built SAS Visual Forecasting 8.5 model in Model Studio.
Here I’ll use the my Hurricane project, which I previously demonstrated in my previous article, Improve Accuracy by Adding Events in SAS Visual Forecasting 8.5 Model Studio.
You can now explore and/or report these results in SAS Visual Analytics.
Let’s return and save our OUTSUM table.
If I am using the SAS Batch API for a SAS Visual Forecasting Project, where are the Output Tables written ?
How can I access them within Batch; especially the output data for the Champions Model. ?
Hi Harald! Your output tables will be written where your batch code sends them. Check out this blog for some code examples: Exporting pluggable modeling node results tables t... - SAS Support Communities. Also, this email from Iman Vasheghani Farahani might also be helpful:
"You can see what the champion model is and export the respective OUTFOR table to any CASLIB you want. I highly recommend you follow that blog to get the tables you’re looking for. Alternatively, and if you cannot modify the modeling node codes (especially for built-in models like HF/PSNN), you can follow the steps coming below to get your tables. If you open the log for one of your modeling nodes, you should be able to locate notes like this when the session VF_SESSION connected to CAS. Once you find it, copy the CASLIB name (highlighted part) as we’ll need it later.
NOTE: The session VF_SESSION connected successfully to Cloud Analytic Services ivf.vfapp.sashq-d.openstack.sas.com using port 5570.
The UUID is 815d00d3-3977-9441-a367-968e68e7638c. The user is imvash and the active caslib is
Analytics_Project_cee08563-52fc-4750-a499-1a873baa4977.
NOTE: The SAS option SESSREF was updated with the value VF_SESSION.
NOTE: The SAS macro _SESSREF_ was updated with the value VF_SESSION.
NOTE: The session is using 0 workers.
Go to SAS Studio and submit the following commands:
cas mycas sessopts=(caslib="Analytics_Project_cee08563-52fc-4750-a499-1a873baa4977");
libname mylib cas sessref=mycas;
You should be able to see your tables in mylib. Note that mylib is linked to the caslib Analytics…, so you might want to save your table somewhere else, say in the CASUSER library. Following code in SAS Studio saves your tables (table_name) in CASUSER:
proc cas;
table.save /
table={caslib="Analytics_Project_cee08563-52fc-4750-a499-1a873baa4977", name="table_name"}
caslib="CASUSER"
name="table_name.sashdat"
replace=true
compress=true;
run;
You should bring them to memory before being able to make queries. Make a new cas session and use proc casutil to bring them in memory.
I hope it helps.
Iman"
And let me add a warning from Martin Schorter.
"Be very careful [trying the code mentioned above] in a production environment. The internal libraries and structures of VF are subject to change. The implementation may break at any time.
As Iman said, absolutely do not make any changes to the content in the project CASLIB or you might end up corrupting the project."
This has been extremely helpful! One question, is there a dataset is savable to CAS that includes the FF or Final Forecast variable? I don't see it in the OUTFOR table, just the predicted values. The predicted values do not include override adjustments, so that's why I ask. Thanks
I would like to know as well, which table or what library holds the FF (final forecast) that includes overrides.
Hi, @BethEbersole
Is that a way to add output data? For example, at the ATSM documantation are other output like outEst, is that a way put this output at the forecast results?
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning and boost your career prospects.