help with INTCK function

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 19
Accepted Solution

help with INTCK function

Hello,

I am trying to use the INTCK function to count the number of quarters from a specific date to a SAS variable (end date).

My code is:

     nquarters=INTCK('qrt', '01OCT2007'd, disday_ndate, 'D');

disday_ndate is a numeric SAS date with format date9.

I'm getting an error that "invalid argument to function INTCK at line X column Y'...

and all values of nquarters are .

Any ideas?

Thank you!

Kelly


Accepted Solutions
Solution
‎05-15-2014 12:11 PM
Occasional Contributor
Posts: 10

Re: help with INTCK function

Hi,

I think qrt should be qtr.

Cheers

Tim

View solution in original post


All Replies
Solution
‎05-15-2014 12:11 PM
Occasional Contributor
Posts: 10

Re: help with INTCK function

Hi,

I think qrt should be qtr.

Cheers

Tim

Occasional Contributor
Posts: 19

Re: help with INTCK function

Oh gosh, duh!  Thank you!

Kelly

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 267 views
  • 1 like
  • 2 in conversation