A SAS User's Guide to Storage Management Allan Page Senior Marketing Analyst Canadian Tire Financial Services.

Slides:



Advertisements
Similar presentations
Effecting Efficiency Effortlessly Daniel Carden, Quanticate.
Advertisements

9 Creating and Managing Tables. Objectives After completing this lesson, you should be able to do the following: Describe the main database objects Create.
OPERATING SYSTEM An operating system is a group of computer programs that coordinates all the activities among computer hardware devices. It is the first.
Programming Types of Testing.
Databases Chapter Distinguish between the physical and logical view of data Describe how data is organized: characters, fields, records, tables,
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 5: Managing File Access.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
Chapter 7: Configuring Disks. 2/24 Objectives Learn about disk and file system configuration in Vista Learn how to manage storage Learn about the additional.
DT211 Stage 2 Databases Lab 1. Get to know SQL Server SQL server has 2 parts: –A client, running on your machine, in the lab. You access the database.
A Guide to MySQL 3. 2 Objectives Start MySQL and learn how to use the MySQL Reference Manual Create a database Change (activate) a database Create tables.
5.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 5: Working with File Systems.
1 Computer Applications in Epidemiology Dongmei Li Lecture 26 5/6/2009.
SAS: Managing Memory and Optimizing System Performance Jacek Czajkowski 09/29/2008.
Storage Devices and Media
Chapter 4: Operating Systems and File Management 1 Operating Systems and File Management Chapter 4.
Lesson 7-Creating Network File Systems. Overview Understand Novell’s network file system (NFS). Understand Windows file storage. Utilization of NFS.
SQL Server 2008 Implementation and Maintenance Chapter 7: Performing Backups and Restores.
Chapter 3: Software Solutions for Personal and Professional Gain
Chapter 1: An Introduction to Computers and Programming Prelude to Programming Concepts and Design Copyright © 2001 Scott/Jones, Inc.. All rights reserved.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
Objectives Learn what a file system does
Copyright © 2006, SAS Institute Inc. All rights reserved. Enterprise Guide 4.2 : A Primer SHRUG : Spring 2010 Presented by: Josée Ranger-Lacroix SAS Institute.
Chapter 2: Working with Data in a Project
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.
SAS Workshop Lecture 1 Lecturer: Annie N. Simpson, MSc.
Writing Maintainable Code with ‘Style’ Allan Page Senior Marketing Analyst Canadian Tire Bank.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 5: Managing File Access.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
With Windows 7 Introductory© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 Windows 7 Introductory Chapter 2 Managing Libraries Folders, Files.
Introduction to SAS. What is SAS? SAS originally stood for “Statistical Analysis System”. SAS is a computer software system that provides all the tools.
Creating and Managing Indexes Using Proc SQL Chapter 6 1.
SAS Efficiency Techniques and Methods By Kelley Weston Sr. Statistical Programmer Quintiles.
Database Systems Microsoft Access Practical #1 Creating Tables Nos 215.
Introduction to Using the Data Step Hash Object with Large Data Sets Richard Allen Peak Stat.
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.
What does C store? >>A = [1 2 3] >>B = [1 1] >>[C,D]=meshgrid(A,B) c) a) d) b)
Guide to Oracle 10g ITBIS373 Database Development Lecture 4a - Chapter 4: Using SQL Queries to Insert, Update, Delete, and View Data.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 11: Managing Access to File System Resources.
Chapter 22: Using Best Practices 1 STAT 541 ©Spring 2012 Imelda Go, John Grego, Jennifer Lasecki and the University of South Carolina.
Page 1 NTFS and Share Permissions Lecture 6 Hassan Shuja 10/26/2004.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 25.1 Test-Driving the ATM Application 25.2.
Variables and control statements in PL\SQL Chapter 10.
Guide to MCSE , Second Edition, Enhanced 1 Managing NTFS Permissions NTFS Only file system supported by Windows XP that offers file- level security.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Database Security Cmpe 226 Fall 2015 By Akanksha Jain Jerry Mengyuan Zheng.
0 / Database Management. 1 / Identify file maintenance techniques Discuss the terms character, field, record, and table Describe characteristics.
Introduction to Files in VB Chapter 9.1, 9.3. Overview u Data Files  random access  sequential u Working with sequential files  open, read, write,
“LAG with a WHERE” and other DATA Step Stories Neil Howard A.
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
Chapter 21: Controlling Data Storage Space 1 STAT 541 ©Spring 2012 Imelda Go, John Grego, Jennifer Lasecki and the University of South Carolina.
1 Chapter Overview Understanding Shared Folders Planning, Sharing, and Connecting to Shared Folders Combining Shared Folder Permissions and NTFS Permissions.
Lab 2 Writing PL/SQL Blocks CISB514 Advanced Database Systems.
Copyright 2009 The Little Engine That Could: Using EXCEL LIBNAME Engine Options to Enhance Data Transfers between SAS® and Microsoft® Excel Files William.
Dynamic SQL Writing Efficient Queries on the Fly ED POLLACK AUTOTASK CORPORATION DATABASE OPTIMIZATION ENGINEER.
Working Efficiently with Large SAS® Datasets Vishal Jain Senior Programmer.
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
SQL IMPLEMENTATION & ADMINISTRATION Indexing & Views.
3 A Guide to MySQL.
Indexes By Adrienne Watt.
Stored Procedures.
Theme 2: Working smarter
Dynamic SQL Writing Efficient Queries on the Fly
SAS Programming Introduction to SAS.
variables and control statements in PL\SQL
Getting your metadata using PROC METADATA
Access/SQL Server Eliminate Duplicates with SELECT DISTINCT
Chapter 5 File Systems -Compiled for MCA, PU
Presentation transcript:

A SAS User's Guide to Storage Management Allan Page Senior Marketing Analyst Canadian Tire Financial Services

Files are stored on all system types  PC (All flavours of Windows)  File or Application Servers (Novell, NT, Y2KServer)  Mid-Range Systems (Unix, etc.)  Mainframes (MVS)

All systems have two thing in common When the drives are full, they’re full ! You can’t add data to a full drive !

Disk drives come in different sizes

Tip # 1  WILL I EVER, EVER NEED THIS FILE AGAIN?

Tip # 1  WILL I EVER, EVER NEED THIS FILE AGAIN?

Tip # 2  What if you said yes?

I need the file right away …..

I need it in the near future …...

 MVS uses HSM System  UNIX uses GZIP  Windows uses Winzip  Windows XP with NTFS has zip and compression utilities

I need it in the distant future …..

 MVS HSM will migrate to tape  UNIX systems may have access to tape storage.  For Windows, consider storing on CD

SAS Specific Storage Efficiencies  Don’t keep duplicate files or subsets  Don’t keep unnecessary rows of data  Don’t keep unnecessary columns of data

How to create a view or use Where.  There are two types of views 1.Data step views 2.SQL views

What a view is - and is not  A view IS a MAP to read other data in a specified form.  A view IS NOT a data store.

Creating and using a Data Step View

Creating and Using a SQL View

The LENGTH Statement  Numeric variables have a default length of 8  Character variables default to the length of first use.  Use the LENGTH statement to override the default values.

What length should I use for numeric values?

When to use the LENGTH statement.  It is best to use the LENGTH statement before any reference to the variable is made either by reading data or assigning values.

Why is position important? When SAS compiles a DATA Step, the attributes of the DATA Set are determined. All statements for an attribute, EXCEPT for the length of the variable, are applied to the variable in order.

Why is position important? The length attribute for numeric variables is not applied to the variable while it is being manipulated in the step. If the length of a numeric variable is shortened the truncation does not occur until the observation is written out to the output data set.

Why is position important? The length attribute for character variables is determined by it's first occurrence.

Let’s look at some data.

The actual contents of this file

The wrong way to use the LENGTH statement

The correct way to use the LENGTH statement

Using LENGTH in a SQL Query

Setting length in the ATTRIB statement

Data Compression  Can be set in an options statement or as a data step option.

Data Compression  Can be set in an options statement or as a data step option.

Data Compression  Compresses the data set by reducing repeated consecutive characters to two- or three-byte representations.

Data Compression - Advantages  Reduced storage requirements for the data set  Fewer input and output operations necessary to read from or write to the data set during processing.

Data Compression - Disadvantages  may not compress at all (may actually make the file larger), but a message detailing the amount of compression is provided  more CPU resources are required.

Compression - A good example

Compression - A bad example

Copyright © 2003, SAS Institute Inc. All rights reserved. 38