Hey guys,
I am relatively inexperienced in sas studio and am working on a project for an online finance class. I am having difficulties using PROC FORECAST and am not sure if it is because i am assigning the data incorrectly. Attached is the program summary displaying the code and the log with the errors. Im sure it is a simple fix, I just dont have the experience necessary to troubleshoot it.
Thanks in advance!
Please post your code directly into the forum, not as an attachment. Its' much easier and faster to answer your questions this way. And not all users can download attachments, I can when I'm at home, but not at work for example.
72
73 data kim;
74 set kim.kim; statement: NOTE: Data file KIM.KIM.DATA is in a format that is native to another host, or the file encoding does not match the session encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might reduce performance.
75
76 IF datadate < '19920331'd THEN delete; ___________ 77 ERROR: Invalid date/time/datetime constant '19920331'd.
ERROR 77-185: Invalid number conversion on '19920331'd.
Your error is due to specifying dates incorrectly, they must always be in date9 format, so, ddMONyyyy, so replace '19920331'd with
'31Mar1992'd and that should fix the first error for you. I didn't check for any more or further.
Good Luck.
@keeljc wrote:
Hey guys,
I am relatively inexperienced in sas studio and am working on a project for an online finance class. I am having difficulties using PROC FORECAST and am not sure if it is because i am assigning the data incorrectly. Attached is the program summary displaying the code and the log with the errors. Im sure it is a simple fix, I just dont have the experience necessary to troubleshoot it.
Thanks in advance!
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.