BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
philipr
Calcite | Level 5
proc ESM data=sasuser.weeklysupply outfor=out1 back=5 lead=20 plot=(modelforecasts models forecastsonly);
	id date interval=week;
	forecast supply / model=winters;
	PRINT=ALL;
	run;

The print function is not working in proc ESM.

 

 

 

I am getting the following error message:

73 proc ESM data=sasuser.weeklysupply outfor=out1 back=5 lead=20 plot=(modelforecasts models forecastsonly);
74 id date interval=week;
75 forecast supply / model=winters;
76 PRINT=ALL;
_____
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
77 run;
1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Try

proc ESM data=sasuser.weeklysupply 
   outfor=out1 back=5 lead=20 
   plot=(modelforecasts models forecastsonly)
   PRINT=ALL
   ;
	id date interval=week;
	forecast supply / model=winters;
run;

The documentation shows the PRINT options go on the PROC statement not a separate statement as you had it.

 

View solution in original post

2 REPLIES 2
ballardw
Super User

Try

proc ESM data=sasuser.weeklysupply 
   outfor=out1 back=5 lead=20 
   plot=(modelforecasts models forecastsonly)
   PRINT=ALL
   ;
	id date interval=week;
	forecast supply / model=winters;
run;

The documentation shows the PRINT options go on the PROC statement not a separate statement as you had it.

 

philipr
Calcite | Level 5
It worked! Thank you so much!

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 831 views
  • 0 likes
  • 2 in conversation