1 Windows and Beginning Data Manipulation HRP223 – 2013 Oct 9, 2012 Copyright © 1999-2013 Leland Stanford Junior University. All rights reserved. Warning:

Slides:



Advertisements
Similar presentations
Macintosh OS X. What is an operating system? O Like cars, computers have operating systems (sometimes abbreviated OS). O A computer operating system is.
Advertisements

Final Thoughts HRP 223 – 2013 December 4 th, 2013 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation.
XP Tutorial 4 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Personalizing Your Windows Environment Tutorial 4.
Raymond R. Balise Health Research and Policy
Working with Data in Windows HRP223 – 2010 October 4 th, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Installing SAS 9.3 Raymond R. Balise Health Research and Policy.
1 SAS Formats and SAS Macro Language HRP223 – 2011 November 9 th, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning:
1 Creating and Tweaking Data HRP223 – 2010 October 24, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Installing SAS 9.3 Raymond R. Balise Health Research and Policy.
1 Lab 1 HRP223 – 2010 October 6, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
SAS 9.2 TS2M3 Raymond R. Balise
1 Lab 1 HRP223 – 2011 Oct 10, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Module 6 Windows 2000 Professional 6.1 Installation 6.2 Administration/User Interface 6.3 User Accounts 6.4 Managing the File System 6.5 Services.
The sequence of folders to a file or folder is called a(n) ________.
Command Console Tutorial BCIS 3680 Enterprise Programming.
Installing SAS 9.3 TS1M1 Raymond R. Balise Health Research and Policy.
Using Microsoft Outlook: Basics. Objectives Guided Tour of Outlook –Identification –Views Basics –Contacts –Folders –Web Access Q&A.
Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR (541)
Access Tutorial 10 Automating Tasks with Macros
Laboratory Exercise # 3 – Basic File Management Office Productivity Tools 1 Laboratory Exercise # 3 Basic File Management Objectives: At the end of the.
Introduction to VB.NET Tonga Institute of Higher Education.
Microsoft Office 2003 Illustrated Introductory with Programs, Files, and Folders Working.
© 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 22 Macros.
1 Data Manipulation (with SQL) HRP223 – 2010 October 13, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
1 ADVANCED MICROSOFT WORD Lesson 16 – Customizing Features Microsoft Office 2003: Advanced.
HPR Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
Working with Data in Windows HRP223 – 2009 Sept 28 th, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Introduction To Windows Operating Systems Manipulating Windows GUI
WINDOWS Part 1 – Start Up Basics
Introduction to Windows7
File Management Presented to The Glades Computer Club January 4, 2001.
Computing Fundamentals Module Lesson 3 — Changing Settings and Customizing the Desktop Computer Literacy BASICS.
Microsoft Office Outlook 2013 Microsoft Office Outlook 2013 Courseware # 3252 Lesson 6: Organizing Information.
1 Lab 2 and Merging Data (with SQL) HRP223 – 2009 October 19, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning:
1 Data Manipulation (with SQL) HRP223 – 2010 October 13, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
1.  Microsoft DOS (Disk Operating System) use a command line user interface.command line  A command line user interface means that the user is required.
CMPF124: Basics Skills for Knowledge Workers Manipulating Windows GUI.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
Computer Skills Chapter 3. Computer Skills1 by Maram & Dareen windows It is a GUI (Graphical User Interface) operating system which is designed for personal.
1 Lab 1 HRP223 – 2011 Oct 10, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
Operating Systems. An operating system (os) is a software program that enables the computer hardware to communicate and operate with the computer software.
1 Lab 1 HRP223 – 2009 October 5, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
CMPF124 Personal Productivity With Information Technology Chapter 1 – Part 2 Introduction to Windows Operating Systems Manipulating Windows GUI CMPF 124.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
Module 2 Part II Introduction To Windows Operating Systems Manipulating Windows GUI Introduction To Windows Operating Systems Manipulating Windows GUI.
1 Data Manipulation (with SQL) HRP223 – 2009 October 12, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
File and File Systems Compiled by IITG Team Need to be reorganized and reworded.
Beginning Data Manipulation HRP Topic 4 Oct 14 th 2012 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
1 Lesson 9 Windows Management Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Today We Will Review: Operating Systems (Windows) (week 3 & 4) Starting up MS Windows Desktop and its contents Functions of the desktop components Brain.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
Chapter 2 – Introduction to Windows Operating System II Manipulating Windows GUI 1CMPF112 Computing Skills for Engineers.
June 17, 2009 Office 2007 Tips & Tricks.
Computer Literacy BASICS
Computer Skills windows.
Working with Data in Windows
SAS Output Delivery System
Computer Skills Chapter 3.
Lab 2 and Merging Data (with SQL)
Lab 2 HRP223 – 2010 October 18, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
Lab 1 HRP223 – 2009 October 5, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
Data Manipulation (with SQL)
Microsoft Office Illustrated Fundamentals
Using Microsoft Outlook: Outlook Support Number
Computer Skills windows.
Computer Skills windows.
Presentation transcript:

1 Windows and Beginning Data Manipulation HRP223 – 2013 Oct 9, 2012 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and international treaties. Unauthorized reproduction of this presentation, or any portion of it, may result in severe civil and criminal penalties and will be prosecuted to maximum extent possible under the law.

2 Topics For Today Setup Windows – Set up folders – Using DOS The parts of SAS Configure SAS Enterprise Guide – Application options – Keyboard macros Using SAS – Libraries – Subsets – Creating toy data sets – Loading real data sets – Descriptive statistics and graphics

3 Add a new folder called projects Double click it (to open it) Setup Windows

4 The projects folder is inside of the c drive. This path is abbreviated c:\Projects If you hate to type, copy and paste it from here. You can choose the view of the contents by pushing this button. I usually use the details view. Setup Windows Show details in Windows 7

5 Add a folder here called HPR223 Inside that folder add a folder called Lab1 Also in the c:\projects\hrp223 folder, add a folders for the homework projects and assignments Setup Windows

6 If there is a project that you are working, on mark the folder with a new icon. 1) right click 2) Choose properties 3) Click Customize 4) Pick an icon Setup Windows

7 If you need to rename anything in windows, click it and push the F2 key. If you want to get to My Computer quickly, push the Windows key with e If you want to get to the desktop quickly, push Windows d If you want to search your hard drive, push Windows f Setup Windows

8 I suggest you use the c:\projects folder on your hard drive but if you do not have permission, you can use the desktop. To point EG to a library on your desktop you need to navigate to a path like: c:\Documents and Settings\blah\Desktop where blah is your account name on the PC.

9 Show details in Windows 7 Similar Windows 7 Voodoo

10 DOS Stuff There are only a few commands you want to bother with – mkdir = make a directory (AKA folder) mkdir c:\blah – del = delete everything del /Q c:\blah\*.* – cd = change to a directory cd c:\blah Using DOS

11 Using DOS Make the directory to hold the data… with DOS!!! – Click the windows start button – Click Run… – Type cmd and push enter – type mkdir c:\projects\hrp223\lab1 and push enter I go here for DOS questions:

12 Windows 7 Click run and in the search box type cmd. On the SAS server user you can use the Windows PowerShell.

13 Allowing EG to Talk to DOS There are times when you want to have SAS or EG ask Windows to do a task. For example, you may want to have a folder (directory) created automatically or you may want to set the folder where SAS should look for files or where results will be stored by default. The easiest way to do this is to type programming commands in DOS (the file manipulation system that predates modern Microsoft Windows). Another word for the operating system is the shell. Using DOS

14 Shell Escape In SAS programs you can type DOS commands like this: X "dos stuff goes here"; These are called shell escapes. Obviously, shell escapes are dangerous tricks that give you the power to do all kinds of mischief including erasing a hard drive. You may need to tweak the registry to turn the functionality on. Using DOS

15 Shell Escape Commands in some versions of EG Tweak to the registry: 1. Start => Run => enter REGEDIT => OK. 2. Select hkey_classes_root => clsid => {440196D => localserver Right-mouse on Default and select Modify. Be careful here. 4. Remove -noxcmd (should be the last item in the list) => Ok. 5. View => Refresh. 6. Exit the Registry window. 7. Reboot Backup your registry before you change anything: support.microsoft.com/kb/ support.microsoft.com/kb/ Ask for help if you have the slightest question. Using DOS

16

17 I am setting the working directory here. I am making a directory to hold the results If anything is in the results folder I am erasing it (quietly). Set the working director to be the results folder

18 The parts of SAS Talking to programmers…. WYSIWYG – pronounced wizzywig = what you see is what you get GUI – pronounced gooey = graphical user interface (the point and click stuff) WYSIWYG graphics editing that works only with SAS. The SAS engine with an old GUI A useful GUI for proc power A GUI for SAS Help files are in here Used to patch SAS Additional analysis tools (text mining) Matrix Algebra tool (like R) Quick launch tool for looking at SAS files.

19 Other Options To save your sanity, double check this option. Be sure this is checked Configure SAS

20 Custom Code for Graphics Analyses in SAS 9.2 can have extra high resolution graphics. Permanently turn them on. Configure SAS

21 Making Code Easy To make it easier to write code I have prepared keyboard macros that will let you fill in the blanks in code rather than having to memorize the details of the language. – Download the file – Open a program node, then from the Program menu, choose Editor Macros and click Macros. – Choose Import… and select the file you downloaded Configure SAS

22 Configure SAS Click on the empty program first

23 Using the Macros When you type the name of an analysis or data management procedure, a "tool tip" will appear. Push the Tab key to have SAS include the code I wrote. Configure SAS

24 Permanent Store I suggest that you save your data into the temporary work library by default. If you have a huge file which you only want to import once, or if you want to keep a permanent copy of a SAS data file, you will want to set up a permanent library. – This is just a fancy way of specifying what folder SAS should use to save the.sas7bdat data files. Using SAS

25 I suggest you use the c:\projects folder on your hard drive but if you do not have permission, you can use the desktop. To point EG to a library on your desktop you need to navigate to a path like: c:\Documents and Settings\blah\Desktop where blah is your account name on the PC.

26 SAS Server Use a path like this: C:\Users\balise\Documents\projects

27 Make the library After you have made the folder in Windows, use the Tools > assignment Project Library… wizard to set up a reference to that folder

28 Using DOS Make the directory to hold the data… with DOS!!! – Click the windows start button – Click Run… – Type cmd and push enter – type mkdir c:\projects\hrp223\lab1 and push enter I go here for DOS questions:

29 Toy Data Sets It used to be that you needed to memorize lots of arcane syntax to accomplish even the easiest of tasks, like making a toy data set. Using SAS for Toy Data

30 Wizards take more time than typing but they are easy to use. zThey can’t do some complicated tasks. Using SAS for Toy Data

31 The EG data manipulation tools use SQL. For simple tasks you can use either language (or point and click) but for complicated tasks, each has advantages which I will eventually show you. Data Step vs. Proc SQL Using SAS for Toy Data