a visual introduction to pc sas. start sas by double-clicking on the sas icon

22
A Visual Introduction to PC SAS

Post on 22-Dec-2015

234 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

A Visual Introduction to PC SAS

Page 2: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

Start SAS by double-clicking on the SAS icon . . .

Page 3: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

. . . or by using the Start menu.

Page 4: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

Welcome to SAS!

Page 5: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

The 3 Main Windows

• There are 3 main windows in PC SAS:– The Editor Window: where programs are

written.– The Log Window: where the SAS log is

displayed.– The Output Window: where the SAS Output is

displayed.

Page 6: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

This is the Editor Window:

Page 7: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

The Editor Window

• The Editor Window is where you will compose SAS programs.

• It is like a simple word processor.

• Terms that SAS recognizes may appear in different colors to help you identify errors as you type.

Page 8: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

You can switch to the Log window by clicking on the Log window button . . .

Page 9: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

This is the Log Window.

Page 10: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

The Log Window

• Displays the SAS Log File

• The Log File is a record of what SAS does with your program.

• It can help you to determine whether SAS did what you wanted. If SAS didn’t do what you wanted, the Log File can help you to figure out why.

Page 11: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

You can switch to the Output window by clicking on the Output window button . . .

Page 12: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

This is the Output Window. It shows the results from running a program.

Page 13: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

You can open a SAS program by choosing “Open Program . . .” from the File Menu . . .

Page 14: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

. . . and choosing a SAS program file.

Page 15: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

The program opens in the Editor Window.

Page 16: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

Run the program by clicking on the little running figure (the Submit button).

Page 17: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

The Output Window displays the results.

Page 18: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

You can choose which results to display by using the Results Tab.

Page 19: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

You can check the SAS log in the Log Window.

Page 20: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

Saving Programs, Logs, and Output

• You can save programs, logs, and output using the “Save” or “Save as” commands under the File menu.

• Files are saved as text files with extensions “.sas” for program files, “.log” for log files, and “.lst” for output files.

Page 21: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

Copying & Pasting

• You can copy programs, log files, and output and paste them into word processor files.

• You can also copy text from a word processor or text editor and paste it into the editor window.

Page 22: A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon

Printing

• You can print programs, logs, and output using the “Print” command under the file menu.

• Make sure you check the margins using the “Page Setup” command under the file menu—default margins may be too narrow for your printer.