The TSMODEL Procedure

Predefined Symbols

In addition to the predefined arrays that are specified in the OUTARRAYS statements and the predefined scalars that are specified in the OUTSCALARS statements, the TSMODEL procedure creates predefined symbols that are automatically available for use in the programming statements. The name and description of the predefined symbols are shown in the following subsections; these names must not be used as variable names in any input data set.

Predefined Scalar Values

_FORMAT_

time format, which is either implied by the INTERVAL= option or specified in the FORMAT= option in the ID statement

_HORIZON_

the time ID value that is one period beyond _TEND_

_INTERVAL_

time interval, which is specified in the INTERVAL= option in the ID statement

_LEAD_

forecast horizon or lead, which is specified in the LEAD= option in the PROC TSMODEL statement

_LENGTH_

length of the time series that is associated with the current BY group

_SERIES_

series index or BY-group counter. When PROC TSMODEL runs in a parallel processing environment, the index value is relative to the machine that processes the series or BY group. Therefore, values of _SERIES_ might not be unique and could also vary for multiple executions of the procedure.

_SEASONALITY_

length of the seasonal cycle, which is specified in the SEASONALITY= option in the PROC TSMODEL statement or implied by the INTERVAL= option in the ID statement

_TEND_

the last time ID value over all the BY groups. _TEND_ is independent of the value of the TRIMID= option in the ID statement, but the value of _TEND_ is the same as the ending value of the output time ID variable span if you specify TRIMID=NONE.

_TSTART_

the first time ID value over all the BY groups. _TSTART_ is independent of the value of the TRIMID= option in the ID statement, but the value of _TSTART_ is the same as the starting value of the output time ID variable span if you specify TRIMID=NONE.

Predefined Array Values

_SEASON_

season index values

_CYCLE_

life-cycle index values

Last updated: June 14, 2018