Hemken / SASmarkdown

A collection of R functions that extends knitr's capability for using SAS as a language engine
Other
21 stars 5 forks source link

Chunk option SASnote / SASproctime #10

Closed mgdondon closed 2 years ago

mgdondon commented 4 years ago

Hello,

In SAS, SASnote and SASproctime are considered as notes :

1    data test;
2      set sashelp.class;
3    run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.TEST has 19 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
1    option nonotes;
2    data test;
3      set sashelp.class;
4    run;

With SASmarkdown :

```{r, engine='saslog', collectcode=TRUE, error=TRUE, SASnotes=TRUE, SASproctime=FALSE}

2          data test;
3            set sashelp.class;
4          run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.TEST has 19 observations and 5 variables.
NOTE: DATA statement used (Total process time):

```{r, engine='saslog', collectcode=TRUE, error=TRUE, SASnotes=FALSE, SASproctime=TRUE}

2          data test;
3            set sashelp.class;
4          run;

      real time           0.00 seconds
      cpu time            0.00 seconds

The NOTE "DATA statement used (Total process time):" should also be associated to SASproctime.

Linked to https://github.com/Hemken/SASmarkdown/issues/9#issuecomment-558328583.

Many thanks,

Hemken commented 2 years ago

Revised log cleanup through SAS options