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



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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