Getting Started with Time Series Forecasting
The Forecast Data Set
The Forecasting System can save the forecasts to a SAS data set in three different formats. Depending on your needs, you might find one of these output formats more convenient. The output data set format is controlled by the Format combo box. You can select the following output formats. The simple format is the default.
SimpleThe data set contains time ID variables and the forecast variables, and it contains one observation per time period. Observations for earlier time periods contain actual values copied from the input data set; later observations contain the forecasts.
InterleavedThe data set contains time ID variables, the variable
TYPE, and the forecast variables. There are several observations per time period, with the meaning of each observation identified by theTYPEvariable.ConcatenatedThe data set contains the variable
SERIES, time ID variables, and the variablesACTUAL,PREDICT,ERROR,UPPER,LOWER, andSTD. There is one observation per time period per forecast series. The variableSERIEScontains the name of the forecast series, and the data set is sorted bySERIESandDATE.
Simple Format Forecast Data Set
To see the simple format forecast data set that the system created, click the Output button. This opens a VIEWTABLE window to display the data set, as shown in Figure 18.
Figure 18: Forecast Data Set—Simple Format

Figure 18 shows the default simple format. This form of the forecast data set contains time ID variables and the variables that you forecast. The forecast variables contain actual values or predicted values, depending on whether the date of the observation is within the range of data supplied in the input data set.
Select File and Close to close the VIEWTABLE window.
Interleaved Format Forecast Data Set
From the Produce Forecasts window, use the list to select the Interleaved format, as shown in Figure 19.
Figure 19: Forecast Data Set Options

Now click the Run button again. The system presents a warning notice reminding you that the data set WORK.FORECAST already exists and asking if you want to replace it. Select Replace.
The forecasts are stored in the data set WORK.FORECAST again, this time in the Interleaved format. Dismiss the notice that the forecast was stored.
Now click the Output button again. This opens a VIEWTABLE window to display the data set, as shown in Figure 20.
Figure 20: Forecast Data Set—Interleaved Format

In the interleaved format, there are several output observations for each input observation, identified by the TYPE variable. The values of the forecast variables for observations with different TYPE values are as follows:
ACTUALactual values copied from the input data set
ERRORthe difference between the actual and predicted values
LOWERthe lower confidence limits
PREDICTthe predicted values from the forecasting model These are within-sample, one-step-ahead predictions for observations within the historical period, or multistep predictions for observations within the forecast period
STDthe estimated standard deviations of the prediction errors
UPPERthe upper confidence limits
Select File and Close to close the VIEWTABLE window.
Concatenated Format Forecast Data Set
Use the list to select the Concatenated format. Create the forecast data set again, and then click the Output button.
The VIEWTABLE window showing the concatenated format of the forecast data set appears, as shown in Figure 21.
Figure 21: Forecast Data Set—Concatenated Format

This completes the example of how to use the Produce Forecasts window. Select File and Close to close the VIEWTABLE window. Click the Close button to return to the Time Series Forecasting window.