Hello SAS Support Communities,
I have a few variables left to calculate for this portion of my dissertation. One of them is calculating the number of quarters covered between rpb and rpe. The periods1 dataset is the starting point. The fyr variable is the month of the end of a fiscal year. For instance, observation 1 has an fyr of 12. That means 12/31 is the end of the fiscal year.
In the periods1b dataset, fyr1a is the beginning of the fiscal year. In observation 1, fyr1a is 1 which means that 1/1 is the beginning of the fiscal year.
Periods2 is the way the dataset should look. Each quarter counts as 0.25. Observation 1 covers 3 years (4 quarters per year for 3 years). Therefore, the periods variable = 3;
Look at observation 2. Fyr is 7, meaning 7/31 is the end of the fiscal year. Since restatement period is from 7/1/2013 through 7/31/2014, parts of 5 quarters are covered (7/1/2013 through 7/31/2013, 8/1/2013 through 10/31/2013, 11/1/2013 through 1/31/2013, 2/1/2014 through 4/30/2014, and 5/1/2014 through 7/31/2014). Therefore, the periods variable = 1.25 (0.25 X 5).
I tried using the intck function as follows:
data dissert1.periods1c;
set dissert1.periods1b;
quarters=intck(qtr,rpb,rpe,'C' );
run;
I received the following error in the log:
3052 quarters=intck('qtr','rpb''d,' rpe'd);
---
76
ERROR 76-322: Syntax error, statement will be ignored.
3066 data dissert1.periods1c;
3067 set dissert1.periods1b;
3068 quarters=intck(qtr,rpb,rpe,'C' );
3069 run;
How should I resolve this?
Thank you so much in advance for your help!
God bless, best regards, and take care,
Jadallah
... View more