Victor
Victor

Reputation: 17107

SAS behavior of intck

In SAS, is there a difference between the two:

a =intck('month',start_dt - 1, end_dt);

and

a =intck('month',start_dt, end_dt);

Does subtracting the 1 day from start_dt make any difference in any circumstances?

Upvotes: 0

Views: 121

Answers (1)

Victor
Victor

Reputation: 17107

It will result in different output if the start_dt is the first of the month. Because start_dt - 1 will fall in previous month and will add '1' to the result of intck.

Upvotes: 3

Related Questions