Contents Index <<Browse<< >>Browse>>
The objective of this project is to familiarize you with the SAS environment.
ASSIGNMENT:
1. Here is an example of a simple data step. These lines would be typed in the program editor window.
data first;
input name $ age;
cards;
john 12
jane 11
jack 13
amy 10
run;
Use the windows clipboard to place the above lines in the SAS program
editor window. To use the windows clipboard, select EDIT--COPY from the
help window menu. Highlight the desired text to copy in the pop up
window, and then press COPY. Make the SAS program editor window active
by clicking in it. Then select EDIT--PASTE from the menu in the program
editor window. After the run; statement type the lines
proc print data=first;
run;
also in the program editor window. Then select LOCAL--SUBMIT from the menu in the program editor window. You should see the data appear in the output window.
If your program doesn't run properly, check the log window for error messages. Then recall the program into the program editor window by selecting LOCAL--RECALL from the menu in the program editor window. Make necessary corrections and then resubmit the program for processing by SAS.
2. Enhance your program by using the title statement to put
a title line with your name, project number, and date as the first
line on all printouts produced by SAS. (Use LOCAL--RECALL from the menu
in the program editor window to recall a copy of your program, if necessary.)
Don't mix the title statement with the data. It could be the first
line of your program (before data first;).
DO THIS ON ALL FUTURE PROJECTS TOO.
3. After you get your program working, SAVE IT on your floppy disk.
First, make sure your program is visible in the program editor window by
using LOCAL--RECALL from the menu in the program editor window if
necessary. Using the menu in the program editor window, select
FILE--SAVE AS--WRITE TO FILE and then type in a name such as
a:proj1.sas. The program can be retrieved by using
FILE--OPEN--READ FILE from the menu in the program editor window.
4. Make the output window active by clicking in it. Then use EDIT--CLEAR TEXT from the menu in the output window to clear the output window. Switch back to the program editor window and run your program one final time. Switch back to the output window and select FILE--PRINT from the menu. A hard copy of output should be printed on the printer. Turn this in.
5. With your program visible in the program editor window, use the FILE--PRINT selection from the menu in the program editor window to print a hard copy of your program. Turn this in too.
Contents Index <<Browse<< >>Browse>>
Copyright © 1997 by Jerry Alan Veeh. All rights reserved.