Errors  : 0
Warnings: 0

NOTE: PROCEDURE PRINTTO used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
28
29         /* assign two temporary librefs */
30         %_mkdir(&g_work/test1)
NOTE: The macro _MKDIR completed compilation without errors.
      26 instructions 616 bytes.
MPRINT(_MKDIR):   options noxwait xsync xmin;
MPRINT(_MKDIR):   options XWAIT XSYNC NOXMIN;
31         libname test1 "&g_work/test1";
NOTE: Libref TEST1 was successfully assigned as follows:
      Engine:        V9
      Physical Name: C:\Users\REDMIN~1\AppData\Local\Temp\SAS Temporary Files\_TD3024_HD1PCMS0104_\test1
32         %_mkdir(&g_work/test2)
MPRINT(_MKDIR):   options noxwait xsync xmin;
MPRINT(_MKDIR):   options XWAIT XSYNC NOXMIN;
33         libname test2 "&g_work/test2";
NOTE: Libref TEST2 was successfully assigned as follows:
      Engine:        V9
      Physical Name: C:\Users\REDMIN~1\AppData\Local\Temp\SAS Temporary Files\_TD3024_HD1PCMS0104_\test2
34
35         proc sort data=sashelp.class out=test2.class1 (label="Dataset for sex=F (9 observations)");
36            by sex;
37            where sex='F';
38         run;
 
NOTE: There were 9 observations read from the data set SASHELP.CLASS.
      WHERE sex='F';
NOTE: The data set TEST2.CLASS1 has 9 observations and 5 variables.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
39         proc sort data=sashelp.class out=test2.class2 (label="Dataset for sex=M (10 observations)");
40            by sex;
6                                                                                                                        The SAS System                                                                                             11:39 Friday, March 21, 20
 
41            where sex='M';
42         run;
 
NOTE: There were 10 observations read from the data set SASHELP.CLASS.
      WHERE sex='M';
NOTE: The data set TEST2.CLASS2 has 10 observations and 5 variables.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
 
 
43
44         %generate(data=sashelp.class, by=sex, out=test1.class)
NOTE: The macro GENERATE completed compilation without errors.
      92 instructions 2676 bytes.
MPRINT(GENERATE):   data;
MPRINT(GENERATE):   run;
 
NOTE: The data set WORK.DATA1 has 1 observations and 0 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
MPRINT(GENERATE):   data;
MPRINT(GENERATE):   run;
 
NOTE: The data set WORK.DATA2 has 1 observations and 0 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
MPRINT(GENERATE):   proc sort data=sashelp.class out=WORK.DATA1;
MPRINT(GENERATE):   by sex;
MPRINT(GENERATE):   run;
 
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.DATA1 has 19 observations and 5 variables.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
MPRINT(GENERATE):   proc means noprint data=WORK.DATA1(keep=sex);
MPRINT(GENERATE):   by sex;
MPRINT(GENERATE):   output out=WORK.DATA2;
MPRINT(GENERATE):   run;
 
NOTE: There were 19 observations read from the data set WORK.DATA1.
NOTE: The data set WORK.DATA2 has 2 observations and 3 variables.
NOTE: PROCEDURE MEANS used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
7                                                                                                                        The SAS System                                                                                             11:39 Friday, March 21, 20
 
 
 
MPRINT(GENERATE):   data _null_;
MPRINT(GENERATE):   set WORK.DATA2 nobs=count;
MPRINT(GENERATE):   call symput ("count", compress(put(count,8.)));
MPRINT(GENERATE):   stop;
MPRINT(GENERATE):   run;
 
NOTE: There were 1 observations read from the data set WORK.DATA2.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
MPRINT(GENERATE):   data _null_;
MPRINT(GENERATE):   set WORK.DATA2 end=eof;
MPRINT(GENERATE):   array t(1) $ 200 _temporary_;
MPRINT(GENERATE):   t(1) = 'Dataset for';
MPRINT(GENERATE):   t(1) = trim(t(1)) !! " sex=" !! trim(left(vvalue(sex)));
MPRINT(GENERATE):   t(1) = trim(t(1)) !! ' (' !! compress(put(_freq_,8.)) !! ' observations)';
MPRINT(GENERATE):   call symput ('label' !! compress(put(_n_,8.)), trim(t(1)));
MPRINT(GENERATE):   run;
 
NOTE: There were 2 observations read from the data set WORK.DATA2.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
MPRINT(GENERATE):   data test1.class1 (label="Dataset for sex=F (9 observations)") TEST1.CLASS2 (label="Dataset for sex=M (10 observations)") ;
MPRINT(GENERATE):   set WORK.DATA1;
MPRINT(GENERATE):   by sex;
MPRINT(GENERATE):   array t(1) _temporary_;
MPRINT(GENERATE):   if first.sex then t(1)+1;
MPRINT(GENERATE):   select(t(1));
MPRINT(GENERATE):   when(1) output test1.class1;
MPRINT(GENERATE):   when(2) output test1.class2;
MPRINT(GENERATE):   end;
MPRINT(GENERATE):   run;
 
NOTE: There were 19 observations read from the data set WORK.DATA1.
NOTE: The data set TEST1.CLASS1 has 9 observations and 5 variables.
NOTE: The data set TEST1.CLASS2 has 10 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
 
 
MPRINT(GENERATE):   proc datasets lib=work nolist;
MPRINT(GENERATE):   delete DATA1 DATA2;
MPRINT(GENERATE):   quit;
 
NOTE: Deleting WORK.DATA1 (memtype=DATA).
NOTE: Deleting WORK.DATA2 (memtype=DATA).
8                                                                                                                        The SAS System                                                                                             11:39 Friday, March 21, 20
 
NOTE: PROCEDURE DATASETS used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
45         %endTestcall()
NOTE: The macro ENDTESTCALL completed compilation without errors.
      67 instructions 2128 bytes.
MPRINT(ENDTESTCALL):   PROC PRINTTO LOG="c:\.jenkins\jobs\SASUnit Build Release ZIP-File\workspace\v1.3\example\doc\sasunit\en/log/003.log" PRINT="c:\.jenkins\jobs\SASUnit Build Release ZIP-File\workspace\v1.3\example\doc\sasunit\en/tst/003.lst" ;
MPRINT(ENDTESTCALL):   RUN;