Fehler   : 0
Warnungen: 0

NOTE: PROZEDUR PRINTTO used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
 
 
78         proc datasets lib=test1 nolist kill;
NOTE: Deleting TEST1.PRDSALE1 (memtype=DATA).
NOTE: Deleting TEST1.PRDSALE2 (memtype=DATA).
NOTE: Deleting TEST1.PRDSALE3 (memtype=DATA).
NOTE: Deleting TEST1.PRDSALE4 (memtype=DATA).
79         quit;
 
NOTE: PROZEDUR DATASETS used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
80         proc datasets lib=test2 nolist kill;
NOTE: Deleting TEST2.PRDSALE1 (memtype=DATA).
NOTE: Deleting TEST2.PRDSALE2 (memtype=DATA).
NOTE: Deleting TEST2.PRDSALE3 (memtype=DATA).
NOTE: Deleting TEST2.PRDSALE4 (memtype=DATA).
81         quit;
 
NOTE: PROZEDUR DATASETS used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
 
 
82         /* create input dataset */
83         proc sort data=sashelp.class out=class;
84            by sex;
85            where sex='F';
86         run;
 
NOTE: There were 9 observations read from the data set SASHELP.CLASS.
      WHERE sex='F';
NOTE: The data set WORK.CLASS has 9 observations and 5 variables.
NOTE: PROZEDUR SORT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
30                                                                                                                       Das SAS System                                                                                             11:39 Friday, March 21, 20
 
 
 
87         /* create expected output dataset */
88         proc sort data=sashelp.class out=test2.class1 (label="Dataset for sex=F (9 observations)");
89            by sex;
90            where sex='F';
91         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: PROZEDUR SORT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
92         %generate(data=class, by=sex, out=test1.class)
MPRINT(GENERATE):   data;
MPRINT(GENERATE):   run;
 
NOTE: The data set WORK.DATA5 has 1 observations and 0 variables.
NOTE: DATA-Anweisung used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
 
 
MPRINT(GENERATE):   data;
MPRINT(GENERATE):   run;
 
NOTE: The data set WORK.DATA6 has 1 observations and 0 variables.
NOTE: DATA-Anweisung used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
MPRINT(GENERATE):   proc sort data=class out=WORK.DATA5;
MPRINT(GENERATE):   by sex;
MPRINT(GENERATE):   run;
 
NOTE: Input data set is already sorted; it has been copied to the output data set.
NOTE: There were 9 observations read from the data set WORK.CLASS.
NOTE: The data set WORK.DATA5 has 9 observations and 5 variables.
NOTE: PROZEDUR SORT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
MPRINT(GENERATE):   proc means noprint data=WORK.DATA5(keep=sex);
MPRINT(GENERATE):   by sex;
MPRINT(GENERATE):   output out=WORK.DATA6;
MPRINT(GENERATE):   run;
 
NOTE: There were 9 observations read from the data set WORK.DATA5.
NOTE: The data set WORK.DATA6 has 1 observations and 3 variables.
31                                                                                                                       Das SAS System                                                                                             11:39 Friday, March 21, 20
 
NOTE: PROZEDUR MEANS used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
MPRINT(GENERATE):   data _null_;
MPRINT(GENERATE):   set WORK.DATA6 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.DATA6.
NOTE: DATA-Anweisung used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
MPRINT(GENERATE):   data _null_;
MPRINT(GENERATE):   set WORK.DATA6 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 1 observations read from the data set WORK.DATA6.
NOTE: DATA-Anweisung used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
 
 
MPRINT(GENERATE):   data test1.class1 (label="Dataset for sex=F (9 observations)") ;
MPRINT(GENERATE):   set WORK.DATA5;
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):   end;
MPRINT(GENERATE):   run;
 
NOTE: There were 9 observations read from the data set WORK.DATA5.
NOTE: The data set TEST1.CLASS1 has 9 observations and 5 variables.
NOTE: DATA-Anweisung used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
MPRINT(GENERATE):   proc datasets lib=work nolist;
MPRINT(GENERATE):   delete DATA5 DATA6;
MPRINT(GENERATE):   quit;
 
NOTE: Deleting WORK.DATA5 (memtype=DATA).
32                                                                                                                       Das SAS System                                                                                             11:39 Friday, March 21, 20
 
NOTE: Deleting WORK.DATA6 (memtype=DATA).
NOTE: PROZEDUR DATASETS used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
 
 
93         %endTestcall()
MPRINT(ENDTESTCALL):   PROC PRINTTO LOG="c:\.jenkins\jobs\SASUnit Build Release ZIP-File\workspace\v1.3\example\doc\sasunit\de/log/003.log" PRINT="c:\.jenkins\jobs\SASUnit Build Release ZIP-File\workspace\v1.3\example\doc\sasunit\de/tst/003.lst" ;
MPRINT(ENDTESTCALL):   RUN;