Steps to writing and running a SAS
program
The italicized monospace
font is what you will see on the monitor.
The bold monospace
is what you will type.
-
Log on to the UNIX system.
-
Change to the class directory.
stats> cd PSY530
-
Open the Pico editor, naming the file something
relevant with a .sas extension (for example, hw1.sas).
-
Now you are in the pico editor. Type in the
SAS program.
-
Exit pico by pressing Control-X. Make sure
you answer yes to save the program.
-
Run the program.
-
Look at the log to check for errors.
-
If you have errors, return to the program
and correct them.
-
Repeat steps 5 through 7, until there are
no errors.
-
Look at your output.
-
Print your program and output
stats> lpr yourfile.sas yourfile.lst
Steps
to writing and running a SPSS program
The italicized monospace
font is what you will see on the monitor.
The bold monospace
is what you will type.
-
Log on to the UNIX system.
-
Change to the class directory.
-
Open the Pico editor, naming the file something
relevant with a .sps extension (for example hw1.sps).
-
Now you are in the pico editor. Type in the
SPSS program.
-
Exit pico by pressing Control-X. Make sure
you answer yes to save the program.
-
Run the program.
stats> spss -m <yourfile.sps>yourfile.out
-
If you have errors they will automatically
appear on the screen. You need to return to the program and correct them.
If you have no errors skip to step 9.
-
Repeat steps 5 and 6, until there are no errors.
-
Look at your output.
-
Print your program and output
stats> lpr yourfile.sps yourfile.out
|
|