SAS למתחילים מרכז המחשבים מרץ 2008 אירית חסיד טל : 04-8293694...

Preview:

Citation preview

SASSAS למתחילים למתחילים

מרכז המחשביםמרכז המחשבים

20082008מרץ מרץ

אירית חסידאירית חסיד

04-829369404-8293694טל: טל:

Irit.H@technion.ac.il Irit.H@technion.ac.il דוא"לדוא"ל::

מטרותמטרות

SAS Enterprise Guideהיכרות עם ממשק היכרות עם ממשק ►ייבוא נתונים ,ועבודה עם נתוניםייבוא נתונים ,ועבודה עם נתונים►יצירת דוחות .יצירת דוחות .►הדוגמאות והתרגילים עושים שימוש בקבצי הנתונים הדוגמאות והתרגילים עושים שימוש בקבצי הנתונים ►

הקיימים במחשבים בהם הותקנה התוכנה בכיתה הקיימים במחשבים בהם הותקנה התוכנה בכיתה d:\sas-course\zqjegqr4\egqr4d:\sas-course\zqjegqr4\egqr4בתיקייה: בתיקייה:

d:\sas-coursed:\sas-courseאת קבצי התרגילים ניתן לשמור ב: את קבצי התרגילים ניתן לשמור ב:

SAS Enterprise Guide Structure

►To begin work with SAS Enterprise Guide 1. create a project 2. add data to the project 3. run tasks against the data.

Navigating the SAS Enterprise Guide

Workspace

Main WindowMain Window

►To reset all windows to their original positions, select Tools -> Options from the menu bar.

►Select Reset Docking Windows -> OK.

Using SAS Enterprise GuideUsing SAS Enterprise Guide

כניסה לתוכנהכניסה לתוכנה start > Programs > SAS > start > Programs > SAS >

Enterprise Guide 4 Enterprise Guide 4

חלונות עיקרייםחלונות עיקריים

סרגלי כליםסרגלי כלים

םם

Active Data displays the active data item in the Project Explorer and process flow. You can

use the drop-down list to select a new active data item, or you can select the data item from the Project Explorer or process flow.

Control enables you to control the processing of code, tasks, queries, and stored

processes.

Project enables you to add new items (project, process flow, stored process, data, code

and note) to the current project.

View enables you to open the nine separate windows that comprise the SAS

Enterprise Guide application and minimize or maximize the workspace.

Standard enables you to manage your files. For example, from this toolbar you can create new files, save existing files, cut and paste text, delete text, and search for text.

ייבוא נתוניםייבוא נתונים

►11

►22

► 33

הפיכת קבצי נתונים מסאס לאקסלהפיכת קבצי נתונים מסאס לאקסל

......11סידרת תרגילים מספר סידרת תרגילים מספר ►

Common Data FormatsCommon Data Formats

SAS Data TablesSAS Data Tables

►Names can be 1 to 32 Characters long.Names can be 1 to 32 Characters long.►Labels for the columns can be up to Labels for the columns can be up to

256 characters in length.256 characters in length.

Adding a Local Excel Adding a Local Excel Spreadsheet to the Spreadsheet to the

ProjectProject►File -> Open -> Data… from the menu File -> Open -> Data… from the menu

bar. bar. ►Select Local Computer to find the Select Local Computer to find the

data source in your Windows data source in your Windows directory.directory.

►Navigate to the location of the data and Navigate to the location of the data and verify that the Files of type field contains averify that the Files of type field contains a

value of All Known Data Files(*.*). Double-value of All Known Data Files(*.*). Double-click on the file.click on the file.

To insert a column, select To insert a column, select Data -> Columns -Data -> Columns -> Insert from the menu bar.> Insert from the menu bar.

......22סידרת תרגילים מספר סידרת תרגילים מספר ►

Getting Started with Tasks

Creating a Listing Report

►By default, SAS Enterprise Guide generates results in HTML format. To generate results in the PDF and RTF formats, right-click on the List Data task in the Project Explorer or Process Flow window and select Properties.

►Select Results in the Selection pane. Select the Override the preferences set in Tools -> Options, HTML, PDF, and RTF check boxes. Select OK.

Using Variable Parameters in Tasks

►Parameters (macro variables) can be used in tasks, queries, and code.

► Select Tools -> Parameters (Macro Variables) Manager to open the window.

......33סידרת תרגילים מספר סידרת תרגילים מספר ►

Select Data tab

►select columns to output►assign aliases and labels►apply formats►group data►perform summary functions►eliminate duplicate rows

► The properties of a column that can be modified include the Alias (name), Label, and Format.

► To add all columns from a table into a query, right-click on the table name and select Add All Columns to Selection. For tables with many columns, it might be helpful to arrange the column names in alphabetical order by selecting Sort by Column Names.

Creating New Columns with an Expression

... ...44סידרת תרגילים מספר סידרת תרגילים מספר ►

Recommended