Hi all, A few years ago I recall seeing a new option which inserts commas in SAS log observation counts. eg Instead of :
NOTE: The data set WORK.A has 345236011 observations and 3 variables.
We would see:
NOTE: The data set WORK.A has 345,236,011 observations and 3 variables.
I've tried searching for this in the SAS Docs but cant find the name of this sas option. Can anyone enlighten me?
Thanks. That option works with OPTIONS statement and GETOPTION() function. It does not work with the OPTIONS procedure however. Even though the OPTIONS procedure has its own LOGNUMBERFORMAT optional keyword that you can add to the PROC OPTIONS statement.
Also note that numeric option values printed by the PROC OPTIONS procedure will that are modified by this LOGNUMBERFORMAT option will not work with the OPTIONS statement.
For example try:
options obs=max lognumberformat; proc options option=obs; run;
You will get something like:
printed to the SAS log.
If you then try to run
options OBS=9,223,372,036,854,775,807 ;
The commas will generate errors.
LOGNUMBERFORMAT is still considered internal and is not documented with PROC OPTIONS because it is limited in scope. It is only intended to affect the formatting of a limited number of numeric values in the log. It does not translate to other system or data set options, such as OBS= or FIRSTOBS=.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.