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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 662 views
  • 0 likes
  • 2 in conversation