Chapter Contents |
Previous |
Next |
Example 1: Quality Control Application |
The following statements compile and store the program:
libname stored 'SAS-data-library-1'; data flaws / pgm=stored.flaws; length Station $ 15; infile daily; input Station $ Shift $ Employee $ NumberOfFlaws; TotalNumber + NumberOfFlaws; run;
The following statements execute the stored compiled program, redirect the output, and print the results:
libname stored 'SAS-data-library-1'; libname testlib 'SAS-data-library-2'; data pgm=stored.flaws; redirect output flaws=testlib.daily; run; proc print data=testlib.daily; title 'Quality Control Report'; run;
Quality Control Application Output
Quality Control Report 1 Number Total Obs Station Shift Employee OfFlaws Number 1 Cambridge 1 Lin 3 3 2 Northampton 1 Kay 0 3 3 Springfiled 2 Sam 9 12 |
Note that you can use the TITLE statement when you execute a stored compiled DATA step program or when you print the results.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.