BookmarkSubscribeRSS Feed
🔒 This topic is locked. We are no longer accepting replies to this topic. Need further help? Please sign in and ask a new question.
eddieray01
Fluorite | Level 6

Per the SAS Demo the structure of the proc timeseries is (using SAS Studio):

proc timeseries data={SAS dataset} plots=(series) out={output dataset};

id date interval=month accumulate=sum;

var visits;

run;

* above execution causes error in log.

 

When written as below it works:

proc timeseries data={SAS dataset} plots=(series) out={output dataset};

id date interval=month;

var visits / accumulate=total;

run;

 

Is the course syntax incorrect , I am assuming so?

5 REPLIES 5
Cynthia_sas
Diamond | Level 26
Hi:
Thanks for the feedback. Can you clarify where in the class the demo occurs (Lesson, Demo topic)? That will be helpful for asking the instructors to investigate.
Thanks,
Cynthia
eddieray01
Fluorite | Level 6
Chapter 1 Introduction to Time Series
Exercise and Solution 1-28b.
TheresaStemler
SAS Moderator

Hi eddieray01, 

The ACCUMULATE= option can go on the ID or VAR statement. The value should be TOTAL not sum. 

Thank you for bring this to our attention. We have forwarded to the appropriate party to correct this error in the solution. 

-theresa

eddieray01
Fluorite | Level 6
okay thanks.  So for testing the exam would reflect proper syntax vs. what is in exercises. 
Cynthia_sas
Diamond | Level 26
Yes. And the e-learning developers are correcting the material in the class. That was a typo in the class.
Cynthia