TSINFO Procedure

ID Statement

  • ID variable </options>;

The ID statement names a numeric variable that identifies observations in the input and output data. The ID variable values are assumed to be SAS date or datetime values.

You can specify the following options to determine how to space the time ID values and align them relative to a SAS date or datetime interval:

ALIGN=BEGINNING | MIDDLE | ENDING | INFER

specifies the alignment of the identifying SAS date or datetime that is used to represent intervals. The value of the ALIGN= option is used in the analysis of the time ID variable. You can specify the following values:

BEGINNING | BEG | B

uses the beginning date in the interval as the identifying date for the interval.

MIDDLE | MID | M

uses the middle date in the interval as the identifying date for the interval.

ENDING | END | E

uses the end date in the interval as the identifying date for the interval.

INFER

infers that the alignment of values within time intervals from the time ID values.

By default, ALIGN=BEGIN.

END=value

specifies a SAS date, datetime, or time value that represents when the SAS date or datetime values end. If the largest variable value is less than value, then this option has no effect.

START=value

specifies a SAS date, datetime, or time value that represents the variable value at which the SAS date or datetime values begins.

Last updated: July 09, 2026