The X13 Procedure
OUTPUT Statement
OUTPUT OUT=SAS-data-set <YEARSEAS> tablename1 tablename2 …;
The OUTPUT statement creates an output data set that contains specified tables. The data set is named by the OUT= option.
- OUT=SAS-data-set
names the data set to contain the specified tables. If the OUT= option is omitted, the data set is named using the default DATAn convention.
-
YEARSEAS
YRSEAS specifies that two additional variables be added to the OUT= data set. The two additional variables are the variables
_YEAR_and_SEASON_. The variable_YEAR_contains the year of the date identifying the observation. The variable_SEASON_contains the month for monthly data, or quarter for quarterly data, of the date that identifies the observation. For monthly data, the value of_SEASON_is between 1 and 12. For quarterly data, the value of_SEASON_is between 1 and 4. The_YEAR_and_SEASON_variables are useful when creating seasonal plots.- tablename1 tablename2 …
-
specify X13 tablenames that correspond to the title label used by the US Census Bureau X-13ARIMA-SEATS software. Specify one tablename for each table to be included in the output data set. Currently available tablenames are A1, A2, A6, A7, A8, A8AO, A8LS, A8TC, A9, A10, A19, B1, B7, B13, B17, B20, C1, C17, C20, D1, D7, D8, D8B, D8BX, D8BO, D8BL, D9, D10, D10B, D10D, D11, D11A, D11F, D11R, D12, D13, D16, D16B, D18, E1, E2, E3, E5, E6, E6A, E6R, E7, E8, E18, and MV1. Specifying D8B is equivalent to specifying D8, D8BX, D8BO, and D8BL because Table D 8.B displays the D8 series along with labels for extremes (D8BX), outliers (D8BO), and level shifts (D8BL). If no table is specified in the OUTPUT statement, Table A1 is output to the OUT= data set by default.
The tablenames that can be used in the OUTPUT statement are listed in the section Displayed Output, ODS Table Names, and OUTPUT Tablename Keywords. The following is an example of a VAR statement and an OUTPUT statement:
var sales costs; output out=out_x13 b1 d11;The default variable name used in the output data set is the input variable name followed by an underscore and the corresponding table name. The variable
sales_B1contains the Table B1 values for the variablesales, the variablecosts_B1contains the Table B1 values for the variablecosts, the variablesales_D11contains the Table D11 values for the variablesales, and the variablecosts_D11contains the Table D11 values for the variablecosts. If necessary, the variable name is shortened so that the table name can be added. If the DATE= variable is specified in the PROC X13 statement, then that variable is included in the output data set; otherwise, a variable named_DATE_is written to the OUT= data set as the date identifier.