Hi,
I run the below code and SAS return note like:
Likelihood Optimization Algorithm Converged in 2 Iterations.
NOTE: The above message was for the following BY group:
...
5020 options notes ;
Is there any way for SAS not to print these lines out?
I use "option nonotes" the the 2nd lines are not print, but the first line still there.
Thank you,
HHC
proc ucm data=have2 noprint;
by tic;
id n interval=obs;
model value;
irregular;
level variance=0 noest;
slope plot=smooth;
forecast lead=0 outfor=for plot=decomp;
run;
options nonotes;
I don't think this can turn off the output from the procedure about how many iterations were needed.
Generally, it is a bad idea to turn off the NOTES, as they provide useful information. The only times I would consider turning off notes is if you have created a program and thoroughly debugged it and certified that it works properly. But for iterative procedures such as PROC UCM, I would still recommend you leave the NOTES on, as it may work fine with this data set and the PROC will not work so well with other data sets and the NOTES will be handy.
options nonotes;
I don't think this can turn off the output from the procedure about how many iterations were needed.
Generally, it is a bad idea to turn off the NOTES, as they provide useful information. The only times I would consider turning off notes is if you have created a program and thoroughly debugged it and certified that it works properly. But for iterative procedures such as PROC UCM, I would still recommend you leave the NOTES on, as it may work fine with this data set and the PROC will not work so well with other data sets and the NOTES will be handy.
If you really don't want this note in the log (or anything else) you can take the EXTREME rout of using PROC PRINTTO to redirect the log (temporarily).
But I fully endorse @PaigeMiller's recommendation. I never use PROC PRINTTO to send the log to the bit bucket, and I (almost) never set NONOTES.
In fact just last week I got bit my a utility macro I wrote a few years ago where I was arrogant enough to set NONOTES because it had been 'debugged' and I didn't want it to clutter the log.
Notes are your friends. Warnings and errors are even better, like family. : )
Thank you all for helping.
HHC
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.