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-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

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