If you are using the saslog or sashtmllog engines, or if you are allowing SAS semantic errors to appear in your document, you may not want to show the entire log file. To gain some control over what shows up in your document, you can use chunk options.
These options are set up for you when you load the SASmarkdown library.
If we use the engine saslog
```{saslog procmeans2}
proc means data=sashelp.class(keep=height);
run;
```
we don’t see ALL of the SAS log file, but we may be showing more information than we really want to present to the reader.
2 proc means data=sashelp.class(keep=height);
3 run;
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The PROCEDURE MEANS printed page 1.
NOTE: PROCEDURE MEANS used (Total process time):
real time 0.09 seconds
cpu time 0.07 seconds
The MEANS Procedure
Analysis Variable : Height
N Mean Std Dev Minimum Maximum
------------------------------------------------------------------
19 62.3368421 5.1270752 51.3000000 72.0000000
------------------------------------------------------------------
We can filter the log to suppress processing times by using chunk
option SASproctime=FALSE
.
```{saslog procmeans2, SASproctime=FALSE, results='hide'}
```
2 proc means data=sashelp.class(keep=height);
3 run;
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The PROCEDURE MEANS printed page 1.
Other filtering options include no SAS command echo with
SASecho=FALSE
and no SAS NOTES with
SASnotes=FALSE
.
1 The SAS System
05:24 Tuesday, August 16, 2022
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The PROCEDURE MEANS printed page 1.
NOTE: PROCEDURE MEANS used (Total process time):
real time 0.07 seconds
cpu time 0.07 seconds
2 proc means data=sashelp.class(keep=height);
3 run;