Stat 304 Assignment 6
SAS Programming – Due on November 1st
This assignment helps you get more familiar with what you have learned from Lesson 1 to Lesson 5 Reporting
enhancement.
1. Create user-defined formats.
a. One will display the full name of the classes: Freshman, Sophomore, Junior, and Senior.
b. One will display the Position as Center, Forward, or Guard. Only the first letter of each position is stored
in the data.
c. One will display a scoring level based on the calc_PPG value. Level A will be displayed for all players
scoring 22 or more points per game. Level B will be for 18 points per game up to but not including 22
points per game. Level C will be for all players scoring less than 18 points per game.
2. Use SAS Explorer to browse the contents of the view Vstyle in the SASHELP library to see a list of all the style
names that are available. The styles listed in this table should be almost the same as the list of styles in the
lecture slides. Apply the style of your choosing to the PDF output. (Do not include “Styles.” when specifying the
style name.) Below is the screenshot for your reference.
3. Print the top ten scorers from the corrected dataset that you created in Step 6 of Assignment 4. Except for the
date printed on the upper right corner of the page and the style, your output MUST match exactly the output
posted on D2L.
a. There are no page numbers.
b. There are two titles and one footnote.
c. Row numbers are suppressed from the output.
d. Make sure the label for the conference variable breaks in the locations shown.
e. Apply your user-defined formats in the printed data.
4. Construct two FREQ procedures to produce the remainder of the output as posted on D2L using the same data
set you used in the previous step. Notice that the second line of the title changes with each procedure and
there is no footnote after the first page. You will need to use your user-defined formats and several of the
options discussed in Lesson 5 to achieve the desired results.
5. Paste your program CODE and LOG into a document that you save as PDF and submit to D2L. Your program
must contain an appropriate header.
6. Submit to D2L the ODS PDF file that contains the output of your procedures.
Good luck!
As a reminder: you need to submit your homework solution with TWO files:
• The 1st PDF — containing your SAS log (the primary grading), SAS source codes, and any other
supplementary answers that you wish to support your solution. Please keep the original font
formats/sizes of your SAS log and source codes. Before copying your Log window, make sure that you
close your SAS, then open the program, and rerun your entire SAS codes. In this way your Log window
will only contain logs relevant to your last submission.
• The 2nd PDF — Your SAS output. You should use the global ODS PDF option to save your outputs
locally for submission. More information about the ODS PDF option can be found at
https://docs.google.com/viewer?url=http%3A%2F%2Fsupport.sas.com%2Frnd%2Fbase%2Fods%2Fodspr
inter%2FPDF-tips.pdf
Your homework would NOT be graded if you didn’t follow the instruction above. And NO late submission
will be accepted.
https://docs.google.com/viewer?url=http%3A%2F%2Fsupport.sas.com%2Frnd%2Fbase%2Fods%2Fodsprinter%2FPDF-tips.pdf
https://docs.google.com/viewer?url=http%3A%2F%2Fsupport.sas.com%2Frnd%2Fbase%2Fods%2Fodsprinter%2FPDF-tips.pdf