1 How to Quickly Customize your PC SAS Session PhilaSUG GSK October 27, 2004 Mary Anne Rutkowski Kathy Harkins Senior Statistical Programming Analysts.

Slides:



Advertisements
Similar presentations
MACREX Indexing Software. Getting Started: Basic Basics.
Advertisements

© 2002 ComputerPREP, Inc. All rights reserved. Excel 2000: Customizing Excel and Using Macros.
1 Appendix A: Writing and Submitting SAS ® Programs A.1 Writing and Submitting SAS Programs.
Exit Microsoft Outlook Skills Using Categories for Sorting, Filtering and Creating Group Oklahoma Department of Corrections Training Administration.
GroupWise Troubleshooting GroupWise Troubleshooting If a current GroupWise user is unable to get into their GroupWise please try the following:
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon...
1 Windows and Beginning Data Manipulation HRP223 – 2013 Oct 9, 2012 Copyright © Leland Stanford Junior University. All rights reserved. Warning:
1 Creating Icons for Commands When there is not an icon related to a command in your toolbars, you will see a question mark (?). No preview available …
Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR (541)
TrendReader Standard 2 This generation of TrendReader Standard software utilizes the more familiar Windows format (“tree”) views of functions and file.
© 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Automation Fundamental Concepts &
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course provides an overview of the installation and.
1 Lesson 6 Exploring Microsoft Office 2007 Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
SAS Workshop Lecture 1 Lecturer: Annie N. Simpson, MSc.
Presented by: Katie Milanowski. 2  Formed in 1982  Bruce Barrington (HBO & Company)  Apply RAD technology to IBM PC  1986: Clarion Version 1.0, Atlanta,
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
Thank you for your decision to try vTreePro Practice Tree Software! Your satisfaction is very important to us. Please feel free to send us an if.
0 eCPIC Admin Training: Custom Calculated Fields These training materials are owned by the Federal Government. They can be used or modified only by FESCOM.
Scalable Game Development William Roberts Senior Game Engineer
Integrated Development Environment (IDE)
Introduction to HTML Reporting with SAS Welcome to HTML reporting with SAS Sam Gordji, Weir 107.
1 Back Up with Each Submit One approach for keeping a dynamic back up copy of your current work.
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
JCreator Tonga Institute of Higher Education. Programming with the command line and notepad is difficult. DOS disadvantages  User Interface (UI) is not.
Chapter 1: Introduction to SAS  SAS programs: A sequence of statements in a particular order  Rules for SAS statements: –Every SAS statement ends in.
Active-HDL Interfaces Debugging C Code Course 10.
5/30/2010 SAS Macro Language Group 6 Pradnya Nimkar, Li Lin, Linsong Zhang & Loc Tran.
Mel & Hot Keys Review. What’s MEL?  Maya Embedded Language  Most of Maya's interface is built using MEL commands and scripts.
CMPS 1371 Introduction to Computing for Engineers MatLab.
Heartbase May 9-11, 2005SIR users’ conference Report Writing with heartbase Report Writing with heartbase.
1 EPIB 698E Lecture 1 Notes Instructor: Raul Cruz 7/9/13.
Programmable Logic Training Course HDL Editor
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
CISB434: VisiRule 1.
Lesson 9: Windows Management Ms. Tracy Digital Literacy.
By Paul Richard and Jim Fitzgerald Chapter 18 – Drawing Management Tools and Utilities.
How to back up files on Windows 7 Step by Step Version.
VDI-in-a-box TM 1 Kaviza Client End User Quick Start Manual.
Exploring Office 2003 Vol 1 2/e - Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Getting Started with Windows® XP Robert Grauer.
XP Tutorial 8 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Object Linking and Embedding Tutorial 8.
Copyright © 2010, SAS Institute Inc. All rights reserved. SAS ® Using the SAS Grid.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
Digital Image Processing Introduction to MATLAB. Background on MATLAB (Definition) MATLAB is a high-performance language for technical computing. The.
Getting to Know Your Desktop Icons, Taskbar, Workspace, Window, Notifications, Start and Search.
1 Introduction to SAS Available at
1 /17 Installing and Configuring TaxWise © 2006, Universal Tax Systems, Inc. All Rights Reserved. Installing and Configuring TaxWise Objectives –In this.
1 EPIB 698C Lecture 1 Instructor: Raul Cruz-Cano
Based on Learning SAS by Example: A Programmer’s Guide Chapters 1 & 2
1 Lesson 9 Windows Management Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
MySQL Getting Started BCIS 3680 Enterprise Programming.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 14 & 19 By Tasha Chapman, Oregon Health Authority.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
Marks Management System Presented by Todd Morrison Technical Services King’s College Visit
Lesson 11 Exploring Microsoft Office 2007
VAB™ for INFINITY Tutorial
ACTIVATE SHORTCUT KEYS ON AN HP LAPTOP’S KEYBOARD.
Using a set-up file to read ASCII data into SPSS
Introduction to Computers
BASICS 1 Windows XP.
3 Macro Storage.
Chapter 1: Introduction to SAS
Instructor: Raul Cruz-Cano
Social Media And Global Computing Introduction to Visual Studio
More to Learn Creating a shortcut
Instructor: Raul Cruz 9/4/13
Microsoft Office Illustrated Fundamentals
Presentation transcript:

1 How to Quickly Customize your PC SAS Session PhilaSUG GSK October 27, 2004 Mary Anne Rutkowski Kathy Harkins Senior Statistical Programming Analysts Merck & Company

2 Introduction It’s easy to customize your PC SAS session! With a “double click” of a Windows desktop shortcut you can launch PC SAS and automatically assign customized SAS settings.

3 Who can Benefit? Any PC SAS user Works for Versions 6.x, 7.x, 8.x, or 9.x although some parts of the shortcut are version dependent You and members of your project team

4 What does the shortcut do? Windows desktop shortcut that: –Launches SAS –Executes a user defined startup SAS program Sets system options, macro variables, and library definitions and/or executes SAS code/macros in an automatic and reusable way –Defines a default startup location for Opening and Saving SAS files

5 When / Where / How… When: The shortcut is used every time you want to launch SAS Where: The shortcut is created once and saved to your desktop How:Double-Click on the shortcut

6 Why To save time To ensure consistency To share option settings, macro variables, macro code among project team members

7 Steps to Follow STEP 1: Create the Windows Desktop Shortcut STEP 2: Create your STARTUP.SAS program STEP 3: Double Click the Shortcut to Launch SAS Note: Steps 1 & 2 are interchangeable

8 STEP 1: Create Desktop Shortcut Right click on any open space on your desktop Select New  Shortcut from the Menu Enter the Shortcut Location: c:\Documents and Settings\your_name_here\Desktop Select Next

9 STEP 1: Create Desktop Shortcut Enter the Shortcut name: SAS Startup Project ABC Select Finish

10 Customize the Shortcut - Target Right click the shortcut “SAS Startup Project ABC” Select Properties from the Menu Next, Select the Shortcut tab Enter Target: “location of SAS on your PC” –autoexec “location of your startup.sas program” -SASinitialfolder “default location for SAS programs” "C:\Program Files\SAS Institute\SAS\V8\sas.exe" -autoexec "c:\DrugABC\prot001\utility\startup.sas“ -SASinitialfolder "C:\DrugABC\Prot001\pgm_analysis"

11 Customize the Shortcut – Start In (Continued) “Start In” defines the default location for the SAS editor to locate your program files (SAS V6.x and V7.x only). Enter Start in: “ C:\DrugABC\Prot001\pgm_analysis” Click Apply For SAS V8.x or higher, Use the -SASinitialfolder syntax on the Target field instead. Change Icon if desired

12 STEP 2: Create Startup.SAS Create Global macro variables to define input directories for your SAS programs: %let drive = c:; %let protpath = &drive\DrugABC\Prot001; Create Global macros variables to further define file locations by file type: %let datadir = &protpath\data_analysis; %let rawdir = &protpath\data_raw; Create Global macro variables to further define macro libraries: %let macdir = &protpath\macrolib ;

13 STEP 2: Create Startup.SAS (Continued) Create Global macro variables to define output directories for LOG, LIS, tabular or graphical outputs from your SAS programs: %let logdir = &protpath\out_logs; %let listdir = &protpath\out_listings; %let graphdir = &protpath\out_graphics; %let tabledir = &protpath\out_tables; Create Global macro variables to define SAS program locations: %let pgmdir = &protpath\pgm_analysis; %let setupdir = &protpath\pgm_setup; Create library references to be used in your SAS programs: libname datadir "&datadir"; libname rawdir "&rawdir";

14 STEP 2: Create Startup.SAS (Continued) Define options with the SAS OPTIONS command to customize your SAS Session: option mautosource mstored noxwait xsync nomprint pageno=1 sasautos=("&macdir" "&smacdir" "q:\maclib" sasautos); Make macro calls to eliminate the need to call them in each program: * Call macro rtfsymbl and generate reference macro dagger_; %rtfsymbl(groups=Referenc); Define frequently used formats: Proc Format; value riskfmt. = 'missing‘ -99 = 'undefined‘ 0.5 = ' =30';

15 STEP 2: Create Startup.SAS (Continued) Define project specific macro variables: %let last_vst=8; *** last visit number for treatment phase ***; %let trtweek=%str( ); *** treatment weeks ***; %let __pvalue=0.05; *** p-value of signifiant ***; Embed macro code: %macro mwkdef; select; when (.<rel_dy<=-1 and phase='Pre-Study') week= -1; when ((. < rel_dy <=1) and phase='Washout') week= 0 ; when ((2<= rel_dy <= 11) and phase in ('Treatment' 'Post-Study')) week= 1 ; when ((12<= rel_dy <= 21) and phase in ('Treatment' 'Post-Study')) week= 2 ; otherwise; end; %mend mwkdef;

16 STEP 3: Execute the Shortcut Double-Click on your SAS Startup Project ABC Shortcut.

17 STEP 3: Execute the Shortcut (Continued) Click on file….open…..

18 Advice on Utilizing the Shortcut Save your STARTUP.SAS program on a share drive. All team members can share and utilize the same shortcuts and settings Create multiple shortcuts on your desktop for example: - development, test, or production versions of code - version for each of your current projects

19 In Recognition Thank you to Margaret Coughlin, Donna Usavage and Ellen Asam for their expert guidance. Q U E S T I O N S ….