Features: |
PRINTTO statement without options
|
options source;
libname lib1 'SAS-library';
proc printto log=test.log label='Inventory program' new; run;
data lib1.inventry; length Dept $ 4 Item $ 6 Season $ 6 Year 4; input dept item season year @@; datalines; 3070 20410 spring 2011 3070 20411 spring 2012 3070 20412 spring 2012 3070 20413 spring 2012 3070 20414 spring 2011 3070 20416 spring 2009 3071 20500 spring 2011 3071 20501 spring 2009 3071 20502 spring 2011 3071 20503 spring 2011 3071 20505 spring 2010 3071 20506 spring 2009 3071 20507 spring 2009 3071 20424 spring 2011 ;
ods listing; proc printto print=lib1.cat1.inventry.output label='Inventory program' new; run; proc report data=lib1.inventry nowindows headskip; column dept item season year; title 'Current Inventory Listing'; run;
proc printto; run; ods listing close;
data lib1.inventry; length Dept $ 4 Item $ 6 Season $ 6 Year 4; input dept item season year @@; datalines; 3070 20410 spring 2011 3070 20411 spring 2012 3070 20412 spring 2012 3070 20413 spring 2012 3070 20414 spring 2011 3070 20416 spring 2009 3071 20500 spring 2011 3071 20501 spring 2009 3071 20502 spring 2011 3071 20503 spring 2011 3071 20505 spring 2010 3071 20506 spring 2009 3071 20507 spring 2009 3071 20424 spring 2011 ;
ods listing; proc printto print=lib1.cat1.inventry.output label='Inventory program' new; run; proc report data=lib1.inventry nowindows headskip; column dept item season year; title 'Current Inventory Listing'; run;
NOTE: PROCEDURE PRINTTO used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 49 50 data lib1.inventry; 51 length Dept $ 4 Item $ 6 Season $ 6 Year 4; 52 input dept item season year @@; 53 datalines; NOTE: SAS went to a new line when INPUT statement reached past the end of a line. NOTE: The data set LIB1.INVENTRY has 14 observations and 4 variables. NOTE: DATA statement used (Total process time): real time 0.03 seconds cpu time 0.00 seconds 61 ; 62 ods listing; 63 proc printto print=lib1.cat1.inventry.output 64 label='Inventory program' new; 65 run; NOTE: PROCEDURE PRINTTO used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 66 67 proc report data=lib1.inventry nowindows headskip; 68 column dept item season year; 69 title 'Current Inventory Listing'; 70 run; NOTE: There were 14 observations read from the data set LIB1.INVENTRY. NOTE: PROCEDURE REPORT used (Total process time): real time 0.09 seconds cpu time 0.04 seconds 71 72 proc printto; 73 run; NOTE: PROCEDURE PRINTTO used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 74 ods listing close;