Using SAS programs from Rosenkoetter’s webpage

http://courses.MissouriState.edu/JRosenkoetter/

Use the programs for Experiments 1, 2, 3, 4, and the final project.

The computer must have SAS installed in order to run the programs.

The operating system that is installed on the PCs on the MSU campus computer labs is Windows 10 Education with Microsoft Office Suite 2016, which includes Word 2016. If you do not have this software installed, these directions might need to be altered.

1. Logon to a computer, open a web browser, such as Mozilla Firefox, and go to my webpage http://courses.MissouriState.edu/JRosenkoetter/

2. In the PSY 302 section, click on the program you need.

3. Open the program with Microsoft Word (or your word-processing software).

4. After the program has downloaded to your computer, Save the file on the Desktop (or in some location where you can find it, such as, in your USB flash drive or in OneDrive) by clicking File à Save As à This PC à Desktop à (or your favorite location) à Save.

DO NOT save it to a Temp file.

5. Close (r) the file, web browser, and everything else.

6. Go to the Desktop (or where you saved the file) and click on the file.

7. Put your name on the top line. Do not erase the '; at the end of the line.

8. Put the data on the lines between the words datalines or cards and the ;

9. To save the file with the data in it, click File à Save .

Version Using SAS 9.4 (English)

Open SAS by clicking on a SAS icon.

If you use SAS 9.4 (English), you are using the full version of SAS. It will open with a small box that says SAS 9.4 and a Change Notice.

10. On a computer that has SAS installed, click on the SAS icon.

If the SAS icon is not visible, click on the Windows icon at the bottom left corner of the screen, scroll down the menu until you get to SAS, drop down the SAS menu, in click on SAS 9.4 (English) .

11. Close (X) the Change Notice.

12. Copy the program that you saved in Step 9. (The Word Document [*.docx] version.)

13. Paste the program into the Editor.

14. In the ribbon near the top, click on the running-man icon . It stands for submit or run. (Or you can click on Run à Submit .)

15. When the Results Viewer – SAS Output window arrives, check the output to confirm that your name is on the top line.

16. Then Print the Output with File à Print à Print .

(The results can also be printed by clicking on the printer icon 6 .)

17. When you are finished, leave SAS with File à Exit and OK.

18. When the question appears: “Do you want to save the changes to Editor – Untitled?” Click on No.

Alternate Version Using SAS Enterprise Guide 7.1

If you use SAS Enterprise Guide 7.1, you are using a smaller version of SAS. It will start with a small box that says Welcome to SAS Enterprise Guide.

10. In the Welcome box, click on New SAS Program.

11. Copy the program that you saved in Step 9. (The Word Document [*.docx] version.)

12. To make a Plain Text file (*.txt), click File à Save As à This PC à Desktop. Then, in the Save as type window, select Plain Text (*.txt) . Click on Save .

(13. If you get a window that says, “The file . . . already exists.” You should click on Replace existing file. Then OK.)

14. When you get a window that says, “Warning: Saving as a text file will cause all . . . to be lost.” hit OK .

15. Close (r) the file.

16. Go to the Desktop (or where you saved the file) and open the plain text version by clicking on it.

17. Copy the program. (The Plain Text [*.txt] version.)

18. Paste the program into the Program box.

19. Click on Run. (Or click on File à Run Project.)

20. When the results window arrives, look at it and then Print the Output with File à Print SAS Report à OK . (The results can also be printed by clicking on the printer icon 6 .)

21. When you are finished, leave SAS with File à Exit .

22. When the question appears: “Do you want to save the changes to Project?” Click on No.

Alternate Version: Make a SAS file that runs automatically on SAS 9.4 (English)

Do not open SAS 9.4 (English) or SAS Enterprise Guide 7.1

10. To make a SAS program file, click File à Save As à This PC à Desktop. Then, in the Save as type window, select Plain Text (*.txt) . Click on Save .

(11. If you get a window that says, “The file . . . already exists.” You should click on Replace existing file. Then OK.)

12. When you get a window that says, “Warning: Saving as a text file will cause all . . . to be lost.” hit OK .

13. Close (r) the file.

14. Go to the Desktop (or where you saved the file) and open the plain text version by clicking on it.

15. Click on File à Save As … .

16. Then in the File name: window, put a name for the file that ends in “.sas” by erasing the “.txt” and typing “.sas” at the end of the name that is already there, e.g., “Exp 1.sas”.

17. Click on Save .

18. Close (r) the program.

19. Go to the Desktop (or the window that shows where you saved the SAS program files.

20. Highlight the SAS program (it should have a red dot on it) by placing the cursor on it—but do not left-click.

21. Right-click (click with the right button of the mouse) on the SAS program.

22. Then click on Submit with SAS 9.4

23. Wait for the computer to start SAS and then for it to complete the work.

24. When the Results Viewer – SAS Output window arrives, look at it and then Print the Output with File à Print à Print .

25. When the Print Job Notification window appears, click à Print

26. When you are finished, leave SAS with File à Exit and OK.

Page 2 of 5