Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. /* Lucas Zhou */
  2.  
  3. /* Project: Earth Day */
  4. /* Output the Earth Day Festival Revenue Report */
  5. /* from the dataset earthdayfinal.sas7bdat */
  6.  
  7. /* March 22 2019 */
  8.  
  9. title1 'Earth Day Festival';
  10. title3 'Sierra Club';
  11. title4 'Apex High School Chapter';
  12. title6 'Full Event Report';
  13.  
  14. ods pdf file='/home/lucaszhou0/Earth_Day_Project.pdf' style=grayscaleprinter;
  15.  
  16. proc sort data = '/home/lucaszhou0/earthdayfinal.sas7bdat' (encoding=wlatin1) out = work.earthdayrev;
  17. by descending DonColct;
  18. run;
  19.  
  20. options nodate;
  21.  
  22. proc print data = earthdayrev split = ' ' noobs;
  23. by descending DonColct;
  24. pageby DonColct;
  25. sum donamt;
  26. label Sponsor = 'Sponsor Name'
  27. donamt = 'Donation Amount Pledged'
  28. DonColct = 'Pledge Collected';
  29. var Sponsor donamt;
  30. format donamt dollar11.2;
  31. run;
  32.  
  33. proc sort data = '/home/lucaszhou0/earthdayfinal.sas7bdat' (encoding=wlatin1) out = work.earthdaygift;
  34. by donamt;
  35. run;
  36.  
  37. proc format;
  38. value gearned 0-300 = 'No Gift'
  39. 301-500 = 'Free Newspaper Ad'
  40. 501-1000 = 'Arts Program Sponsorship'
  41. 1001-2000 = 'Athletic Program Sponsorship';
  42. run;
  43.  
  44. proc print data = earthdaygift split = ' ' noobs;
  45. var Sponsor;
  46. var donamt / style(header)={just=l};
  47. label Sponsor = 'Sponsor Name' donamt = 'Gift Earned';
  48. format donamt gearned.;
  49. run;
  50.  
  51. ods pdf close;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement