The TSMODEL Procedure

OUTSCALARS Statement

  • OUTSCALARS scalar-name-list;

  • OUTSCALAR scalar-name-list;

The OUTSCALARS statement specifies a list of scalar names; each name specifies a numeric or character output scalar variable to be stored in the table that is specified in the OUTSCALAR= option in the PROC TSMODEL statement. You can specify multiple OUTSCALARS statements.

Your program statements can create and use any number of scalars. Only scalars that are listed in the OUTSCALARS statement are predefined and included in the table that is specified in the OUTSCALAR= option. The scalars are initialized to missing values at the start of each BY group. Each scalar name can specify numeric or character scalar variables which are defined as follows:

var-list

defines the variables in the var-list as numeric scalars.

var-list $n

defines the variables in the var-list as character scalars with length n.

The following statement defines scalar variables rc, holdout, and nchanges as numeric scalars, and defines selected as character with length 32.

outscalar rc selected $32 holdout nchanges;
Last updated: April 15, 2021