11 Chapter 2: Working with Data in a Project 2.1 Introduction to Tabular Data 2.2 Accessing Local Data 2.3 Importing Text Files 2.4 Editing Tables in the.

Slides:



Advertisements
Similar presentations
Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
Advertisements

Basics Of Spreadsheets Chapter Spreadsheet spreadsheet: grid of cells, each of which can contain text data or numeric data.
Objectives 1.Identify the functions of a spreadsheet 2.Identify how spreadsheets can be used. 3.Explain the difference in columns and rows. 4.Locate specific.
1 Appendix A: Writing and Submitting SAS ® Programs A.1 Writing and Submitting SAS Programs.
Exploring Microsoft Excel 2002 Chapter 7 Chapter 7 List and Data Management: Converting Data to Information By Robert T. Grauer Maryann Barber Exploring.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Access Tutorial 3 Maintaining and Querying a Database
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Chapter 7 Data Management. Agenda Database concept Import data Input and edit data Sort data Function Filter data Create range name Calculate subtotal.
1 Committed to Shaping the Next Generation of IT Experts. Chapter 3 – Graphs and Charts: Delivering a Message Robert Grauer and Maryann Barber Exploring.
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
Tutorial 11: Connecting to External Data
Introduction to Microsoft Excel
1 Chapter 3: Getting Started with Tasks 3.1 Introduction to Tasks and Wizards 3.2 Creating a Frequency Report 3.3 Generating HTML, PDF, and RTF Output.
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Chapter 3 Maintaining a Database
Excel 2007 Part (2) Dr. Susan Al Naqshbandi
11 Chapter 3: Getting Started with Tasks 3.1 Introduction to Tasks and Wizards 3.2 Creating a Frequency Report 3.3 Generating HTML, PDF, and RTF Output.
Chapter 2: Working with Data in a Project
Access Lesson 2 Creating a Database
Unit J: Creating a Database Microsoft Office Illustrated Fundamentals.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
1 Chapter 5: Creating Summarized Output 5.1 Generating Summary Statistics 5.2 Creating a Summary Report with the Summary Tables Task 5.3 Creating and Applying.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 4 – Creating New.
1 Chapter 4: Creating Simple Queries 4.1 Introduction to Querying Data 4.2 Filtering and Sorting Data 4.3 Creating New Columns with an Expression 4.4 Grouping.
Access Tutorial 2 Building a Database and Defining Table Relationships
Chapter 1 Databases and Database Objects: An Introduction
Creating a Web Site to Gather Data and Conduct Research.
Microsoft Access Get a green book. Page AC 2 Define Access Define database.
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
Chapter 6 Generating Form Letters, Mailing Labels, and a Directory
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
CHƯƠNG 3 Finding, Filtering, and Formatting Data.
Lesson 17 Getting Started with Access Essentials
XP 1 Microsoft Access 2003 Introduction To Microsoft Access 2003.
Microsoft Access You will need a pen/pencil.. What is Microsoft Access? Access is a database management system.  Create a database, add/change delete.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
Key Applications Module Lesson 21 — Access Essentials
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 23 Getting Started with Access Essentials 1 Morrison / Wells / Ruffolo.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
Lesson 11: Looking at Files and Folders what a file or folder is on the computer how to recognize a file or folder on the desktop how to recognize the.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 15 Advanced Tables.
1 Chapter 2: Working with Data in a Project 2.1 Introduction to Tabular Data 2.2 Accessing Local Data 2.3 Accessing Remote Data 2.4 Importing Text Files.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
A Skills Approach Access 2010 Working with Tables © 2012 The McGraw-Hill Companies, Inc. All rights reserved Chapter 2.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
1 Chapter 6: Using Prompts in Tasks and Queries 6.1 Prompting in Projects 6.2 Creating and Using Prompts in Tasks 6.3 Creating and Using Prompts in Queries.
1 Lesson 13 Organizing and Enhancing Worksheets Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
1 Chapter 4: Creating Simple Queries 4.1 Introduction to the Query Task 4.2 Selecting Columns and Filtering Rows 4.3 Creating New Columns with an Expression.
1 Chapter 7: Customizing and Organizing Project Results 7.1 Combining Results 7.2 Updating Results 7.3 Customizing the Output Style (Self-Study)
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
Pasewark & Pasewark 1 Access Lesson 2 Creating a Database Microsoft Office 2007: Introductory.
Microsoft® Excel Create an Excel table. 1 Work with the Table Tools Design tab. 2 Sort and filter records in a table. 3 Identify structured references.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 6 BACKNEXTEND 6-1 LINKS TO OBJECTIVES Using the Report Button Using the Report Button Print.
1 Chapter 3: Getting Started with Tasks 3.1 Introduction to Task Dialogs 3.2 Creating a Listing Report 3.3 Creating a Frequency Report 3.4 Creating a Two-Way.
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
Modify Tables and FieldsModify Tables and Fields Lesson 4 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
COMPUTER LITERACY NOTES MS-EXCEL. SPREADSHEETS A spreadsheet is a computer equivalent of a paper ledger sheet. Excel allows you to create spreadsheets.
Chapter 3: Getting Started with Tasks
Access Tutorial 2 Building a Database and Defining Table Relationships
Access Tutorial 2 Building a Database and Defining Table Relationships
Access Tutorial 2 Building a Database and Defining Table Relationships
Unit J: Creating a Database
Lesson 13 Working with Tables
Presentation transcript:

11 Chapter 2: Working with Data in a Project 2.1 Introduction to Tabular Data 2.2 Accessing Local Data 2.3 Importing Text Files 2.4 Editing Tables in the Data Grid

2 Objectives State the definition of a SAS data set. State how data is stored in a SAS data set. 2

3 Common Data Formats SAS Enterprise Guide can read and use data from a variety of different formats. 3 Microsoft Excel spreadsheets JMP, SPSS, and Stata files HTML tables ODBC- compliant data OLE DB provider’s files Microsoft Access tables Fixed-width and delimited text files SAS data sets

44

Multiple Answer Poll Which types of data do you work with? a.Microsoft Excel b.Microsoft Access c.DBMS tables (such as Oracle or DB2) d.SAS data sets e.Text files (delimited files) f.Other 5

6 SAS Data Set 6 A SAS data set (or table) is a rectangular table of rows and columns. Rows (observations) Columns (variables)

7 SAS Data Set All columns must have a name, type, and length. 7 Names can be 1 to 32 characters long.

8 SAS Data Set 8 A column’s type is either character (string) or numeric. The type plays a role in determining the length. Character values are 1 to 32,767 characters (bytes) long. Numeric values are 8 bytes of floating point storage: Numeric Currency Date (days from 01JAN1960) Time (seconds from midnight)

9 SAS Data Set 9 A format is used to control how values are displayed. Formats do not affect how values are stored. Format:MMDDYY Width:10 Stored value:15766 Format:DOLLAR Width:8 Decimal Places:2 Stored value:234.60

10 Formats 10

11

Multiple Choice Poll Which of the following variable attributes is not required? a.Name b.Type c.Length d.Format 12

Multiple Choice Poll – Correct Answer Which of the following variable attributes is not required? a.Name b.Type c.Length d.Format 13

14 SAS Data Set Properties Viewing a data set’s properties enables you to examine the data set and column attributes. 14

15

Multiple Choice Poll Right-click on the employee_organization data set in the project and select Properties  Columns. What is the length of the variable Job_Title ? a.8 b.9 c.25 d.40 16

Multiple Choice Poll – Correct Answer Right-click on the employee_organization data set in the project and select Properties  Columns. What is the length of the variable Job_Title ? a.8 b.9 c.25 d.40 17

18 Missing Values If a data value is not present for a column in a particular row, it is considered missing. A missing character value is displayed as a blank. A missing numeric value is displayed as a period or dot. 18.

19 Chapter 2: Working with Data in a Project 2.1 Introduction to Tabular Data 2.2 Accessing Local Data 2.3 Importing Text Files 2.4 Editing Tables in the Data Grid

20 Objectives Add a local Excel spreadsheet to the project. View the properties of the data. 20

21 Business Scenario 21 Orion maintains a list of products in a Microsoft Excel file named products.xlsx. To use this data in SAS Enterprise Guide, it must be imported into a SAS data set.

22 Importing Structured Data Not from SAS The Import Data wizard enables you to create SAS data sets from text, HTML, or PC-based data files (including Microsoft Excel and Microsoft Access). 22

23 Step 1: Specify Data The first step is to confirm the source data and designate the output SAS data set name and storage location. 23 Verify the file to be imported. Change the name and storage location for the output SAS data set.

24 Step 2: Select Data Source Choose the data to be read and indicate whether the first row contains column names. 24

25

Multiple Answer Poll If the Rename columns to comply with SAS naming conventions. option is selected, which column headings would be modified in the imported data set? a. Product_Category b. Product Name c. Discount% d. Supplier-Country 26

Multiple Answer Poll – Correct Answers If the Rename columns to comply with SAS naming conventions. option is selected, which column headings would be modified in the imported data set? a. Product_Category b. Product Name c. Discount% d. Supplier-Country Spaces and special symbols will be replaced with an underscore. 27

28 Step 3: Define Field Attributes Set column attributes for columns included in the imported SAS data set. 28

29 Step 4: Advanced Options Select any applicable advanced options. 29

30 Import Data Results The new SAS data set is created and accessible via the Project Tree or Process Flow. 30

31 Updating Results The Import Data wizard can be rerun or modified from the Output Data tab. 31 Use the button to refresh the output data set. Use Modify Task to reopen the Import Data wizard and make changes.

32 Adding a Local Excel Spreadsheet to the Project This demonstration illustrates how to add a local Excel spreadsheet to the project. 32

33 Chapter 2: Working with Data in a Project 2.1 Introduction to Tabular Data 2.2 Accessing Local Data 2.3 Importing Text Files 2.4 Editing Tables in the Data Grid

34 Objectives Use the Import Data task to import a text file into a project as a SAS data set. 34

35 Business Scenario Orion Star has a fixed-width text file named orders. To use the data in the text file, it must be imported into a SAS data set. 35

36 Business Scenario The SAS data set must have the following attributes: Name the data set orders. Exclude the Employee_ID column. Assign column names based on the first row of the text file. Format Profit as a currency value. Format Discount with a percent sign. 36

37 Import Data Wizard To your computer, a text file is only strings of characters. SAS Enterprise Guide requires that the data be structured with rows and columns (observations and variables). 37

38 Import Data Wizard The Import Data wizard can be used to convert a text file into a customized SAS data set. 38

39

Quiz What do you need to tell SAS Enterprise Guide about this file in order to provide the necessary structure to create a SAS data set? 40

Quiz – Correct Answer What do you need to tell SAS Enterprise Guide about this file in order to provide the necessary structure to create a SAS data set? where each column is located in the text file which columns to read in the name of each column whether the first row contains column headings the type of data in each column –character –numeric (currency, date, time) how much storage space to allocate how to read and format the data values 41

42 Adding Data from a Fixed-Width Text File This demonstration illustrates using the Import Data task to read a text file. 42

43

44 Exercise This exercise reinforces the concepts discussed previously. 44

45

46 Chapter 2: Working with Data in a Project 2.1 Introduction to Tabular Data 2.2 Accessing Local Data 2.3 Importing Text Files 2.4 Editing Tables in the Data Grid

47 Objectives Use the Data Grid to delete columns and rows. Use the Data Grid to modify column attributes and sort a data set. Use the Expression Builder to create columns. 47

48 Business Scenario A data manager at Orion Star wants to permanently modify the orders data set to include a column named Total_Invoice that represents the sum of Total_Retail_Price and Shipping. 48

49 Data Grid When you add a data set to a project, the Data Grid’s default behavior is to display the data automatically in read-only mode. Actions available in the Data Grid in read-only mode include the following: browsing SAS data sets and other data sources resizing row and column widths for better viewing copying rows and columns to paste into a new or existing SAS data set hiding rows and columns from view holding rows and columns while scrolling 49

50 Data Grid Actions available in the Data Grid in update mode are limited to SAS data sets and include all actions available in read-only mode, as well as the ability to do the following: edit data values change the names of columns apply labels and formats to columns delete rows and columns sort by multiple columns in ascending or descending order create new columns and add rows 50 When you modify a data set through the Data Grid, you change the actual data values in the data set.

51 Column Properties Right-click on a column and select Properties to modify the column name, label, type, and format. 51

52 Insert a Column To permanently add a column, right-click on the existing column where the new column should be added and select Insert Column…. 52

53 Expression Builder: Creating a Column Use the Advanced Expression Builder to provide an expression to build a new column. 53

54 Data Grid: Results The additional column will be added and saved within the data source. 54