BookmarkSubscribeRSS Feed
keeljc
Calcite | Level 5

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!

1 REPLY 1
Reeza
Super User

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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 582 views
  • 0 likes
  • 2 in conversation