PROC X12 Statement
- PROC X12 options;
The PROC X12 statement provides information about the
time series to be processed by PROC X12. Either the START= or the DATE= option must be specified.
The original series is displayed in table A1. If there are missing values in the original series, and a regARIMA model is specified or automatically selected, then table MV1 is displayed. Table MV1 contains the original series with missing values replaced by the predicted values from the fitted model.
The following options can appear in the PROC X12 statement.
- DATA= SAS-data-set
-
specifies the input SAS data set used. If this option is omitted, the most
recently created SAS data set is used.
- DATE= variable
- DATEVAR= variable
-
specifies a variable that gives the date for each observation.
Unless specified in the SPAN= option, the starting and ending dates are obtained from the first and last values of the DATE= variable, which must contain SAS datetime values. The procedure checks values of the DATE= variable
to ensure that the input observations are sequenced correctly in ascending order. If the INTERVAL= or SEASONS= option is specified, its values must agree with the values of the date variable. If neither the INTERVAL= or SEASONS= option is specified, then the procedure tries to determine the type of data from the values of the date variable. This variable is automatically added to the OUTPUT= data set if one is requested and is extrapolated if necessary. If the DATE= option is not specified, the START= option must be specified.
- START= mmmyy
- START= 'yyQq'
- STARTDATE= mmmyy
- STARTDATE= 'yyQq'
-
gives the date of the first observation. Unless the SPAN= option is used, the starting and ending dates are the dates of the first and last observations, respectively. Either this option or the DATE= option is required. When using this option, use either the INTERVAL= or SEASONS= option to specify monthly or quarterly data. If neither the INTERVAL= or SEASONS= is present, monthly data are assumed.
Note that for a quarterly date, the specification must be enclosed in quotes.
A 4-digit year can be specified, but if a 2-digit year is given, the value specified in the YEARCUTOFF= SAS system option applies.
- SPAN= (mmmyy,mmmyy)
- SPAN= ('yyQq','yyQq')
-
gives the dates of the first and last observations to define a subset for processing.
A single date in parentheses is interpreted to be the starting date of the subset.
To specify only the ending date, use SPAN=(,mmmyy). If the starting or ending date is omitted, then the first or last date, respectively, of the input data set is assumed. A 4-digit year can be specified, but if a 2-digit year is given, the value specified in the YEARCUTOFF= SAS system option applies.
- INTERVAL= interval
-
specifies the frequency of the input time series.
If the input data consist of quarterly observations, then
INTERVAL=QTR should be used. If the input data consist of monthly
observations, then INTERVAL=MONTH should be used. If the INTERVAL= option
is not specified and SEASONS=4, then INTERVAL=QTR is assumed; likewise,
SEASONS=12 implies INTERVAL=MONTH. If both are used, the values should
not be conflicting. If neither the INTERVAL= nor SEASONS= option is
specified and the START= option is specified, then the data are assumed
to be monthly. If a date variable is specified using the DATE= option,
it is not necessary to specify the INTERVAL= or SEASONS= option; however,
if specified, the values of the INTERVAL= or SEASONS= option should not be
in conflict with the values of the date variable.
- SEASONS= period
-
specifies the number of observations in a seasonal cycle.
If the SEASONS= option is not specified and INTERVAL=QTR, then SEASONS=4 is assumed. If the SEASONS= option is not specified and INTERVAL=MONTH, then SEASONS=12 is assumed. If the SEASONS= option is specified, its value should not conflict with the values of the INTERVAL= option or the values of the date variable. See the preceding descriptions for the START=, DATE=, and INTERVAL= options for more details.
- NOPRINT
- suppresses any printed output.
Copyright © 2000 by SAS Institute Inc., Cary, NC, USA. All rights reserved.