How to Import an Excel File Using the SAS Import Wizard SAS 9 for Windows
Go to the File menu and select “Import Data”
Choose the file type. Note: Click on the arrow at right of file format box to get a list of file types. Select Excel 4 spreadsheet, then click “Next”.
Locate and select the file “pulse.xls” using the Browse… button. Note: pulse.xls is in c:\temp. After selecting pulse.xls, click on “Open”.
Proceed to the next window Click on “Next” to go to the next window.
Save the data set and click on “Finish” or “Next”. The library selected may be WORK, or another library you have previously defined. Type “pulse” in the Member box. Click on “Finish” to implement the import, or “Next” to save commands for importing.
Create SAS statements to import the data. If you selected “Next” you may now save SAS statements in a command file to use later. After specifying the file name, click “Finish”.
Check the log to be sure the data set was created You should see a message that says WORK.PULSE was successfully created.
From the Editor Window, Open the saved SAS statements
Browse to the name of your saved commands Open pulse_setup.sas from the c:\temp folder.
Use a data step to create new variables Add commands to your SAS statements to create new variables, or carry out an analysis on the current data set.
Submit your commands.. In the Program Editor Window, highlight the data and proc step commands with your mouse and submit by clicking on running figure icon.
Check the Log Window to be sure the revised data set was properly created.
Check the Output Window to view/print results from Proc Means.