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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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