![]() Chapter Contents |
![]() Previous |
![]() Next |
| The PRINT Procedure |
| Procedure features: |
| ||||
| Other features: |
| ||||
| Data set: | EMPDATA |
| Program |
| | options nodate pageno=1 linesize=64 pagesize=60; proc sort data=empdata out=tempemp; by jobcode gender; run; |
| | proc print data=tempemp split='*'; |
| | id jobcode; by jobcode; var gender salary; |
| | sum salary; |
| | label jobcode='Job Code*========'
gender='Gender*======'
salary='Annual Salary*============='; |
| | format salary dollar11.2; where jobcode contains 'FA' or jobcode contains 'ME'; title 'Expenses Incurred for'; title2 'Salaries for Flight Attendants and Mechanics'; run; |
| Output |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.